View source: R/mod_switch_button.R
tabSwitch | R Documentation |
Tab switch button server
tabSwitch(id, tab.id, parent.session)
id |
The input id to read value from. |
tab.id |
The id of |
parent.session |
The session from parent scope. |
if (interactive()) { library(shiny) library(shinydashboard) library(dcamodules) ui <- dashboardPage( dashboardHeader(), dashboardSidebar( sidebarMenu( id = "tabs", menuItem("awesome_tab") ) ), dashboardBody( tabSwitchUI( id = "switch", tabItems(tabItem("awesome_tab")) ) ) ) server <- function(input, output, session) { tabSwitch("switch", "tabs", session) } shinyApp(ui, server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.