plushie/widget/column

Column widget builder (vertical layout).

Types

pub opaque type Column

Values

pub fn a11y(col: Column, a: a11y.A11y) -> Column

Set accessibility properties for this widget.

pub fn align_x(col: Column, a: alignment.Alignment) -> Column

Set the horizontal alignment.

pub fn build(col: Column) -> node.Node

Build the column into a renderable Node.

pub fn clip(col: Column, c: Bool) -> Column

Set whether overflowing content is clipped.

pub fn extend(col: Column, children: List(node.Node)) -> Column

Add multiple child nodes.

pub fn height(col: Column, h: length.Length) -> Column

Set the height.

pub fn max_width(col: Column, m: Float) -> Column

Set the maximum width.

pub fn new(id: String) -> Column

Create a new column builder.

pub fn padding(col: Column, p: padding.Padding) -> Column

Set the padding.

pub fn push(col: Column, child: node.Node) -> Column

Add a child node.

pub fn spacing(col: Column, s: Int) -> Column

Set the spacing between children.

pub fn width(col: Column, w: length.Length) -> Column

Set the width.

pub fn wrap(col: Column, w: Bool) -> Column

Set whether children wrap when they overflow.

Search Document