mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-13 17:08:05 -05:00
31 lines
785 B
R
31 lines
785 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/bootstrap.R
|
|
\name{mainPanel}
|
|
\alias{mainPanel}
|
|
\title{Create a main panel}
|
|
\usage{
|
|
mainPanel(..., width = 8)
|
|
}
|
|
\arguments{
|
|
\item{...}{Output elements to include in the main panel}
|
|
|
|
\item{width}{The width of the main panel. For fluid layouts this is out of 12
|
|
total units; for fixed layouts it is out of whatever the width of the main
|
|
panel's parent column is.}
|
|
}
|
|
\value{
|
|
A main panel that can be passed to \code{\link{sidebarLayout}}.
|
|
}
|
|
\description{
|
|
Create a main panel containing output elements that can in turn be passed to
|
|
\code{\link{sidebarLayout}}.
|
|
}
|
|
\examples{
|
|
# Show the caption and plot of the requested variable against mpg
|
|
mainPanel(
|
|
h3(textOutput("caption")),
|
|
plotOutput("mpgPlot")
|
|
)
|
|
}
|
|
|