mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-05 20:25:13 -05:00
37 lines
1.5 KiB
R
37 lines
1.5 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/bootstrap-layout.R
|
|
\name{flexRow}
|
|
\alias{flexCol}
|
|
\alias{flexRow}
|
|
\title{Flex Box-based row/column layouts}
|
|
\usage{
|
|
flexRow(..., flex = 1, width = "100\%", height = "100\%")
|
|
|
|
flexCol(..., flex = 1, width = "100\%", height = "100\%")
|
|
}
|
|
\arguments{
|
|
\item{...}{UI objects to put in each row/column cell; each argument will
|
|
occupy a single cell. To put multiple items in a single cell, you can use
|
|
\code{\link{tagList}} or \code{\link{div}} to combine them.}
|
|
|
|
\item{flex}{Determines how space should be distributed to the cells. Can be a
|
|
single value like \code{1} or \code{2} to evenly distribute the available
|
|
space; or use a vector of numbers to specify the proportions. For example,
|
|
\code{flex = c(2, 3)} would cause the space to be split 40\%/60\% between
|
|
two cells.}
|
|
|
|
\item{width, height}{The total amount of width and height to use for the
|
|
entire row/column. For the default height of \code{"100\%"} to be
|
|
effective, the parent must be \code{fillPage}, another
|
|
\code{flexRow}/\code{flexCol}, or some other HTML element whose height is
|
|
not determined by the height of its contents.}
|
|
}
|
|
\description{
|
|
Creates row and column layouts with proportionally-sized cells, using the
|
|
Flex Box layout model of CSS3. These can be nested to create arbitrary
|
|
proportional-grid layouts. \strong{Warning:} Flex Box is not well supported by
|
|
Internet Explorer, so these functions should only be used where modern
|
|
browsers can be assumed.
|
|
}
|
|
|