plushie/widget/keyed_column
Keyed column widget builder (column with keyed children for efficient diffing).
Types
pub opaque type KeyedColumn
Option type for keyed column properties.
pub type Opt {
Spacing(Float)
Padding(padding.Padding)
Width(length.Length)
Height(length.Length)
MaxWidth(Float)
AlignX(alignment.Alignment)
A11y(a11y.A11y)
}
Constructors
-
Spacing(Float) -
Padding(padding.Padding) -
Width(length.Length) -
Height(length.Length) -
MaxWidth(Float) -
AlignX(alignment.Alignment) -
A11y(a11y.A11y)
Values
pub fn a11y(kc: KeyedColumn, a: a11y.A11y) -> KeyedColumn
Set accessibility properties for this widget.
pub fn align_x(
kc: KeyedColumn,
a: alignment.Alignment,
) -> KeyedColumn
Set the horizontal alignment.
pub fn extend(
kc: KeyedColumn,
children: List(node.Node),
) -> KeyedColumn
Add multiple child nodes.
pub fn spacing(kc: KeyedColumn, s: Float) -> KeyedColumn
Set the spacing between children.
pub fn with_opts(kc: KeyedColumn, opts: List(Opt)) -> KeyedColumn
Apply a list of options to a keyed column builder.