tabPanel
elements.navbarPage(title, ..., id = NULL, header = NULL, footer = NULL,
inverse = FALSE, collapsable = FALSE, fluid = TRUE, responsive = TRUE,
theme = NULL)navbarMenu(title, ..., icon = NULL)
tabPanel
elements to include in
the pageinput$
id
in your server logic to
determine which of the current tabs is active. The value
will correspond to the value
argument that is
passed to
TRUE
to use a dark background and
light text for the navigation barTRUE
to automatically collapse
the navigation elements into a menu when the width of the
browser is less than 940 pixels (useful for viewing on
smaller touchscreen device)TRUE
to use a fluid layout.
FALSE
to use a fixed layout.TRUE
to use responsive layout
(automatically adapt and resize page elements based on
the size of the viewing device)www/bootstrap.css
you would
use theme = "bootstrap.css"
.navbarMenu
tab.navbarMenu
function can be used to create an embedded
menu within the navbar that in turns includes additional tabPanels (see
example below).tabPanel
, tabsetPanel
shinyUI(navbarPage("App Title",
tabPanel("Plot"),
tabPanel("Summary"),
tabPanel("Table")
))
shinyUI(navbarPage("App Title",
tabPanel("Plot"),
navbarMenu("More",
tabPanel("Summary"),
tabPanel("Table")
)
))
Run the code above in your browser using DataLab