Creates a HTML tag and automatically generates css style rules based on css grid, depending on the given arguments. Functionality acts as a way to generate css grid based HTML containers directly from R without the need to write any additional css rules directly.
gridPanel(
...,
template = NULL,
areas = NULL,
rows = NULL,
columns = NULL,
gap = NULL,
align_items = "stretch",
justify_items = "stretch",
auto_fill = TRUE,
breakpoint_system = getBreakpointSystem(),
id = generateID()
)
Tag attributes (named arguments) and child elements (unnamed arguments or with names used in areas).
Named arguments are treated as additional html attribute values to the parent tag, unless that name is used in the areas attribute as a grid area name.
Child elements may include any combination of other tags objects, HTML strings, and htmlDependencys.
The name of a registered template to use as a base for the grid, or a template object from gridTemplate.
A list of vectors with area names, or a vector or strings representing each row of the grid. Each element should contain the names, per row, of each area of the grid.
Expected values follow the
convention for the grid-template-areas
css attribute.
for example c("area-1 area-1", "area-2 area-3")
and
list(c("area-1", "area-1"), c(area-2", "area-3"))
are both valid
representations of a 2x2 grid with 3 named areas.
Supports breakpoints.
A string of css valid sizes separated by a space. or a vector of
sizes. For example both "1fr 2fr"
or c("1fr", "2fr")
are valid
representations of the same 2 rows grid sizes.
Follows the convention for the grid-template-rows
css attribute.
If not provided the existing space will be split equally accordingly to the areas defined in areas.
Supports breakpoints.
A string of css valid sizes separated by a space. or a vector
of sizes. For example both "1fr 2fr"
or c("1fr", "2fr")
are valid
representations of the same 2 columns grid sizes.
Follows the convention for the grid-template-columns
css attribute.
If not provided the existing space will be split equally accordingly to the areas defined in areas.
Supports breakpoints.
The space between elements in the panel. Controls both the space between rows and columns.
Accepts a css valid value, or 2 values separated by a space (if using different values for row and column spacing).
Supports breakpoints.
The cell behavior according to the align-items
css
property. Aligns grid items along the block (column) axis.
Accepts a valid css align-items
value
(start
| end
| center
| stretch
).
Supports breakpoints.
The cell behavior according to the justify-items
css
property. Aligns grid items along the inline (row) axis.
Accepts a valid css justify-items
value
(start
| end
| center
| stretch
).
Supports breakpoints.
Should the panel stretch to fit its parent size (TRUE), or should its size be based on its children element sizes (FALSE).
Supports breakpoints.
Breakpoint system to use.
The parent element id.
An HTML tagList.
Behaves similar to a normal HTML tag, but provides helping arguments that simplify the way grid css can be created from shiny.