| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/bootstrap-layout.R |
| 3 |
\name{flowLayout} |
| 4 |
\alias{flowLayout} |
| 5 |
\title{Flow layout} |
| 6 |
\usage{ |
| 7 |
flowLayout(..., cellArgs = list()) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{...}{Unnamed arguments will become child elements of the layout. Named |
| 11 |
arguments will become HTML attributes on the outermost tag.} |
| 12 |
|
| 13 |
\item{cellArgs}{Any additional attributes that should be used for each cell |
| 14 |
of the layout.} |
| 15 |
} |
| 16 |
\description{ |
| 17 |
Lays out elements in a left-to-right, top-to-bottom arrangement. The elements |
| 18 |
on a given row will be top-aligned with each other. This layout will not work |
| 19 |
well with elements that have a percentage-based width (e.g. |
| 20 |
\code{\link[=plotOutput]{plotOutput()}} at its default setting of \code{width = "100\%"}). |
| 21 |
} |
| 22 |
\examples{ |
| 23 |
## Only run examples in interactive R sessions |
| 24 |
if (interactive()) { |
| 25 |
|
| 26 |
ui <- flowLayout( |
| 27 |
numericInput("rows", "How many rows?", 5), |
| 28 |
selectInput("letter", "Which letter?", LETTERS), |
| 29 |
sliderInput("value", "What value?", 0, 100, 50) |
| 30 |
) |
| 31 |
shinyApp(ui, server = function(input, output) { }) |
| 32 |
} |
| 33 |
} |
| 34 |
\seealso{ |
| 35 |
Other layout functions: |
| 36 |
\code{\link{fillPage}()}, |
| 37 |
\code{\link{fixedPage}()}, |
| 38 |
\code{\link{fluidPage}()}, |
| 39 |
\code{\link{navbarPage}()}, |
| 40 |
\code{\link{sidebarLayout}()}, |
| 41 |
\code{\link{splitLayout}()}, |
| 42 |
\code{\link{verticalLayout}()} |
| 43 |
} |
| 44 |
\concept{layout functions} |