powered by
Create a tab panel
tab_panel( title, ..., value = title, icon = NULL, type = "bottom attached segment" )
Display title for tab
UI elements to include within the tab
The value that should be sent when navbar_menu reports that this tab is selected. If omitted and navbar_menu has an id, then the title will be used.
navbar_menu
Optional icon to appear on the tab. This attribute is only valid when using a tab_panel within a navbar_page.
tab_panel
navbar_page
Change depending what type of tab is wanted. Default is bottom attached segment.
bottom attached segment
A tab that can be passed to navbar_menu.
# NOT RUN { navbar_menu( tab_panel("Plot", shiny::plotOutput("plot")), tab_panel("Summary", shiny::verbatimTextOutput("summary")), tab_panel("Table", shiny::tableOutput("table")) ) # }
Run the code above in your browser using DataLab