mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-01 18:24:54 -05:00
34 lines
833 B
R
34 lines
833 B
R
\name{sidebarPanel}
|
|
\alias{sidebarPanel}
|
|
\title{Create a sidebar panel}
|
|
\usage{
|
|
sidebarPanel(..., width = 4)
|
|
}
|
|
\arguments{
|
|
\item{...}{UI elements to include on the sidebar}
|
|
|
|
\item{width}{The width of the sidebar. For fluid layouts
|
|
this is out of 12 total units; for fixed layouts it is
|
|
out of whatever the width of the sidebar's parent column
|
|
is.}
|
|
}
|
|
\value{
|
|
A sidebar that can be passed to
|
|
\code{\link{sidebarLayout}}
|
|
}
|
|
\description{
|
|
Create a sidebar panel containing input controls that can
|
|
in turn be passed to \code{\link{sidebarLayout}}.
|
|
}
|
|
\examples{
|
|
# Sidebar with controls to select a dataset and specify
|
|
# the number of observations to view
|
|
sidebarPanel(
|
|
selectInput("dataset", "Choose a dataset:",
|
|
choices = c("rock", "pressure", "cars")),
|
|
|
|
numericInput("obs", "Observations:", 10)
|
|
)
|
|
}
|
|
|