Debian Codegraph @

man/tabPanel.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/bootstrap.R
3 \name{tabPanel}
4 \alias{tabPanel}
5 \alias{tabPanelBody}
6 \title{Create a tab panel}
7 \usage{
8 tabPanel(title, ..., value = title, icon = NULL)
9
10 tabPanelBody(value, ..., icon = NULL)
11 }
12 \arguments{
13 \item{title}{Display title for tab}
14
15 \item{...}{UI elements to include within the tab}
16
17 \item{value}{The value that should be sent when \code{tabsetPanel} reports
18 that this tab is selected. If omitted and \code{tabsetPanel} has an
19 \code{id}, then the title will be used.}
20
21 \item{icon}{Optional icon to appear on the tab. This attribute is only
22 valid when using a \code{tabPanel} within a \code{\link[=navbarPage]{navbarPage()}}.}
23 }
24 \value{
25 A tab that can be passed to \code{\link[=tabsetPanel]{tabsetPanel()}}
26 }
27 \description{
28 Create a tab panel
29 }
30 \section{Functions}{
31 \itemize{
32 \item \code{tabPanel()}: Create a tab panel that can be included within a \code{\link[=tabsetPanel]{tabsetPanel()}} or a \code{\link[=navbarPage]{navbarPage()}}.
33
34 \item \code{tabPanelBody()}: Create a tab panel that drops the title argument.
35 This function should be used within \code{tabsetPanel(type = "hidden")}. See \code{\link[=tabsetPanel]{tabsetPanel()}} for example usage.
36
37 }}
38 \examples{
39 # Show a tabset that includes a plot, summary, and
40 # table view of the generated distribution
41 mainPanel(
42 tabsetPanel(
43 tabPanel("Plot", plotOutput("plot")),
44 tabPanel("Summary", verbatimTextOutput("summary")),
45 tabPanel("Table", tableOutput("table"))
46 )
47 )
48 }
49 \seealso{
50 \code{\link[=tabsetPanel]{tabsetPanel()}}
51 }