Create a page with a top level navigation bar — navbarPage
navbarPage(title, ..., id = NULL, selected = NULL, position = c("static-top", "fixed-top", "fixed-bottom"), header = NULL, footer = NULL, inverse = FALSE, collapsible = FALSE, collapsable, fluid = TRUE, responsive = NULL, theme = NULL, windowTitle = title) navbarMenu(title, ..., menuName = title, icon = NULL)
Arguments
title |
The title to display in the navbar |
---|---|
... |
|
id |
If provided, you can use |
selected |
The |
position |
Determines whether the navbar should be displayed at the top
of the page with normal scrolling behavior ( |
header |
Tag or list of tags to display as a common header above all tabPanels. |
footer |
Tag or list of tags to display as a common footer below all tabPanels |
inverse |
|
collapsible |
|
collapsable |
Deprecated; use |
fluid |
|
responsive |
This option is deprecated; it is no longer optional with Bootstrap 3. |
theme |
Alternative Bootstrap stylesheet (normally a css file within the
www directory). For example, to use the theme located at
|
windowTitle |
The title that should be displayed by the browser window.
Useful if |
menuName |
A name that identifies this |
icon |
Optional icon to appear on a |
Description
Create a page that contains a top level navigation bar that can be used to
toggle a set of tabPanel()
elements.
Value
A UI defintion that can be passed to the shinyUI function.
Details
The navbarMenu
function can be used to create an embedded
menu within the navbar that in turns includes additional tabPanels (see
example below).
See also
tabPanel()
, tabsetPanel()
,
updateNavbarPage()
, insertTab()
,
showTab()
Other layout functions: fillPage
,
fixedPage
, flowLayout
,
fluidPage
, sidebarLayout
,
splitLayout
, verticalLayout
Examples
navbarPage("App Title", tabPanel("Plot"), tabPanel("Summary"), tabPanel("Table") ) navbarPage("App Title", tabPanel("Plot"), navbarMenu("More", tabPanel("Summary"), "----", "Section header", tabPanel("Table") ) )