-
Notifications
You must be signed in to change notification settings - Fork 29
/
boxWidget.Rd
63 lines (60 loc) · 1.05 KB
/
boxWidget.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
53
54
55
56
57
58
59
60
61
62
63
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/useful-items.R
\name{boxWidget}
\alias{boxWidget}
\title{A box widget container}
\usage{
boxWidget(..., title = NULL, width = NULL)
}
\arguments{
\item{...}{slot for any widget}
\item{title}{widget title}
\item{width}{widget width}
}
\description{
A box widget container
}
\examples{
if (interactive()) {
library(shiny)
library(gentelellaShiny)
shinyApp(
ui = gentelellaPageCustom(
gentelellaBody(
box(
width = 6,
title = "Box Widget",
fluidRow(
column(
width = 3,
align = "center",
sliderInput(
"obs",
"Number of observations:",
min = 0,
max = 1000,
value = 500
)
),
column(
width = 9,
boxWidget(
title = "Widget",
plotOutput("distPlot")
)
)
)
)
)
),
server <- function(input, output) {
output$distPlot <- renderPlot({
hist(rnorm(input$obs))
})
}
)
}
}
\author{
David Granjon, \email{[email protected]}
}