mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-05 12:15:14 -05:00
When no explicit value argument was present on tabPanel, the inner text of the HTML anchor was used. This gave weird results when an icon was used, since it appears in the anchor. The fix is to always use the value parameter, defaulting it to the title.
42 lines
1.1 KiB
R
42 lines
1.1 KiB
R
% Generated by roxygen2 (4.1.0): do not edit by hand
|
|
% Please edit documentation in R/bootstrap.R
|
|
\name{tabPanel}
|
|
\alias{tabPanel}
|
|
\title{Create a tab panel}
|
|
\usage{
|
|
tabPanel(title, ..., value = title, icon = NULL)
|
|
}
|
|
\arguments{
|
|
\item{title}{Display title for tab}
|
|
|
|
\item{...}{UI elements to include within the tab}
|
|
|
|
\item{value}{The value that should be sent when \code{tabsetPanel} reports
|
|
that this tab is selected. If omitted and \code{tabsetPanel} has an
|
|
\code{id}, then the title will be used..}
|
|
|
|
\item{icon}{Optional icon to appear on the tab. This attribute is only
|
|
valid when using a \code{tabPanel} within a \code{\link{navbarPage}}.}
|
|
}
|
|
\value{
|
|
A tab that can be passed to \code{\link{tabsetPanel}}
|
|
}
|
|
\description{
|
|
Create a tab panel that can be included within a \code{\link{tabsetPanel}}.
|
|
}
|
|
\examples{
|
|
# 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"))
|
|
)
|
|
)
|
|
}
|
|
\seealso{
|
|
\code{\link{tabsetPanel}}
|
|
}
|
|
|