updateTabsetPanel

0th

Percentile

Change the selected tab on the client

Change the selected tab on the client

Usage
updateTabsetPanel(session, inputId, selected = NULL)
See Also

tabsetPanel, navlistPanel, navbarPage

Aliases
Examples
shinyServer(function(input, output, session) {

  observe({
    # TRUE if input$controller is even, FALSE otherwise.
    x_even <- input$controller %% 2 == 0

    # Change the selected tab.
    # Note that the tabset container must have been created with an 'id' argument
    if (x_even) {
      updateTabsetPanel(session, "inTabset", selected = "panel2")
    } else {
      updateTabsetPanel(session, "inTabset", selected = "panel1")
    }
  })
})
Documentation reproduced from package shiny, version 0.9.1, License: GPL-3

Community examples

Looks like there are no examples yet.