Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
How to get the shiny input id of current screen focus?

I defined my own rhansontable right-click event.

I have two rhandsontables on screen. Both are wrapped in uiOutput.

Now I right click a table cell "Action A", and cusslct is assigned a new value.

The question is I want to know the right click from which table on the screen.

Any idea ?

insert_slct_vct_cus <- function(target_table) {
  rhandsontable::hot_context_menu(
    hot = target_table,
    # allowRowEdit = FALSE,
    # allowColEdit = FALSE,
    customOpts = list(
      schedule_editor_menu = list(
        name = "Select vector",
        callback = htmlwidgets::JS(
          "function(key, options) {
              var val = Math.random();
              Shiny.setInputValue(
                'body_ui_1-assumptions_ui_1-cusslct',
                val,
                {priority: 'event'});
          }"
        )
      )
    )
  )
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!