plushie/widget/grid

Grid layout widget builder.

Types

pub opaque type Grid

Values

pub fn a11y(g: Grid, a: a11y.A11y) -> Grid

Set accessibility properties for this widget.

pub fn build(g: Grid) -> node.Node

Build the grid into a renderable Node.

pub fn column_count(g: Grid, n: Int) -> Grid

Set the count on a column definition.

pub fn column_width(g: Grid, w: length.Length) -> Grid

Set the width on a column definition.

pub fn columns(g: Grid, n: Int) -> Grid

Set the number of columns.

pub fn extend(g: Grid, children: List(node.Node)) -> Grid

Add multiple child nodes.

pub fn fluid(g: Grid, max_cell_width: Float) -> Grid

Enable fluid mode with the given max cell width.

pub fn height(g: Grid, h: length.Length) -> Grid

Set the height.

pub fn new(id: String) -> Grid

Create a new grid builder.

pub fn padding(g: Grid, p: padding.Padding) -> Grid

Set the padding.

pub fn push(g: Grid, child: node.Node) -> Grid

Add a child node.

pub fn row_height(g: Grid, h: length.Length) -> Grid

Set the height of each row.

pub fn spacing(g: Grid, s: Int) -> Grid

Set the spacing between children.

pub fn width(g: Grid, w: length.Length) -> Grid

Set the width.

Search Document