flowLayout: Flow layout

Description Usage Arguments See Also Examples

View source: R/bootstrap-layout.R

Description

Lays out elements in a left-to-right, top-to-bottom arrangement. The elements on a given row will be top-aligned with each other. This layout will not work well with elements that have a percentage-based width (e.g. plotOutput at its default setting of width = "100%").

Usage

1
flowLayout(..., cellArgs = list())

Arguments

...

Unnamed arguments will become child elements of the layout. Named arguments will become HTML attributes on the outermost tag.

cellArgs

Any additional attributes that should be used for each cell of the layout.

See Also

verticalLayout

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Only run examples in interactive R sessions
if (interactive()) {

ui <- flowLayout(
  numericInput("rows", "How many rows?", 5),
  selectInput("letter", "Which letter?", LETTERS),
  sliderInput("value", "What value?", 0, 100, 50)
)
shinyApp(ui, server = function(input, output) { })
}

Example output



shiny documentation built on May 30, 2017, 3:31 a.m.

Search within the shiny package
Search all R packages, documentation and source code