Closed ghost closed 5 years ago
Hi,
There is no input associated with the sidebar or tabCard. Therefore this behavior is expected. For the moment you could create a JavaScript code to set a Shiny.onInputChange. It won’t work with Shinytest.
Thanks for the suggestion, the workaround works.
Would you be willing to post an example of the workaround?
Hey @OGuggenbuehl,
Basically I added the following JS code to argonDashBody
tags$script( "$(document).on('click', function(event) {
Shiny.onInputChange('activeTab', $('.active').data().value);});")
Which creates input$activeTab
containing the id of the active tab.
This trick only works after the user clicks anywhere on page, I couldn't get Shiny.onInputChange
to work without that.
Let me know if you still need help.
Hi, I tried to access the current tab selection by running
input$sidebar
,sidebar
being the id of the sidebar used inargonDashSidebar
but it did not work. Is this a bug?