R Shiny switch tabPanel when selectInput value changes

I am trying to dynamically switch the active tabPanel to tabsetPanel when the selectInput value changes. How can I achieve this?

+4
source share
2 answers

Something like this should work:

observe({ updateTabsetPanel(session, "tabsetId", selected = input$selectInputId) }) 
+5
source
 observe({ updateTabsetPanel(session, "tabsetId", selected = "tabPanelId") }) 
-1
source

Source: https://habr.com/ru/post/1485370/


All Articles