tabPanel | R Documentation |
Create a tab panel
tabPanel(title, ..., value = title, icon = NULL)
tabPanelBody(value, ..., icon = NULL)
title |
Display title for tab |
... |
UI elements to include within the tab |
value |
The value that should be sent when |
icon |
Optional icon to appear on the tab. This attribute is only
valid when using a |
A tab that can be passed to tabsetPanel()
tabPanel()
: Create a tab panel that can be included within a tabsetPanel()
or a navbarPage()
.
tabPanelBody()
: Create a tab panel that drops the title argument.
This function should be used within tabsetPanel(type = "hidden")
. See tabsetPanel()
for example usage.
tabsetPanel()
# Show a tabset that includes a plot, summary, and
# table view of the generated distribution
mainPanel(
tabsetPanel(
tabPanel("Plot", plotOutput("plot")),
tabPanel("Summary", verbatimTextOutput("summary")),
tabPanel("Table", tableOutput("table"))
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.