navbarPage | R Documentation |
Create a page that contains a top level navigation bar that can be used to
toggle a set of tabPanel()
elements.
navbarPage(
title,
...,
id = NULL,
selected = NULL,
position = c("static-top", "fixed-top", "fixed-bottom"),
header = NULL,
footer = NULL,
inverse = FALSE,
collapsible = FALSE,
fluid = TRUE,
theme = NULL,
windowTitle = NA,
lang = NULL
)
navbarMenu(title, ..., menuName = title, icon = NULL)
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 |
|
fluid |
|
theme |
One of the following:
|
windowTitle |
the browser window title (as a character string). The
default value, |
lang |
ISO 639-1 language code for the HTML page, such as "en" or "ko".
This will be used as the lang in the |
menuName |
A name that identifies this |
icon |
Optional icon to appear on a |
The navbarMenu
function can be used to create an embedded
menu within the navbar that in turns includes additional tabPanels (see
example below).
A UI definition that can be passed to the shinyUI function.
tabPanel()
, tabsetPanel()
,
updateNavbarPage()
, insertTab()
,
showTab()
Other layout functions:
fillPage()
,
fixedPage()
,
flowLayout()
,
fluidPage()
,
sidebarLayout()
,
splitLayout()
,
verticalLayout()
navbarPage("App Title",
tabPanel("Plot"),
tabPanel("Summary"),
tabPanel("Table")
)
navbarPage("App Title",
tabPanel("Plot"),
navbarMenu("More",
tabPanel("Summary"),
"----",
"Section header",
tabPanel("Table")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.