-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
pageWithSidebar.Rd
53 lines (46 loc) · 1.19 KB
/
pageWithSidebar.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\name{pageWithSidebar}
\alias{pageWithSidebar}
\title{Create a page with a sidebar}
\usage{
pageWithSidebar(headerPanel, sidebarPanel, mainPanel,
head = list())
}
\arguments{
\item{headerPanel}{The \link{headerPanel} with the
application title}
\item{sidebarPanel}{The \link{sidebarPanel} containing
input controls}
\item{mainPanel}{The \link{mainPanel} containing outputs}
\item{head}{Tag or list of tags to be inserted into the
head of the document (for example, addition of required
Javascript or CSS resources via \code{tags$script} or
\code{tags$style})}
}
\value{
A UI defintion that can be passed to the \link{shinyUI}
function
}
\description{
Create a Shiny UI that contains a header with the
application title, a sidebar for input controls, and a
main area for output.
}
\examples{
# Define UI
shinyUI(pageWithSidebar(
# Application title
headerPanel("Hello Shiny!"),
# Sidebar with a slider input
sidebarPanel(
sliderInput("obs",
"Number of observations:",
min = 0,
max = 1000,
value = 500)
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot")
)
))
}