plushie/widget/stack

Stack container widget builder.

Types

Option type for stack properties.

pub type Opt {
  Width(length.Length)
  Height(length.Length)
  Clip(Bool)
  A11y(a11y.A11y)
}

Constructors

pub opaque type Stack

Values

pub fn a11y(s: Stack, a: a11y.A11y) -> Stack

Set accessibility properties for this widget.

pub fn build(s: Stack) -> node.Node

Build the stack into a renderable Node.

pub fn clip(s: Stack, c: Bool) -> Stack

Set whether overflowing content is clipped.

pub fn extend(s: Stack, children: List(node.Node)) -> Stack

Add multiple child nodes.

pub fn height(s: Stack, h: length.Length) -> Stack

Set the height.

pub fn new(id: String) -> Stack

Create a new stack builder.

pub fn push(s: Stack, child: node.Node) -> Stack

Add a child node.

pub fn width(s: Stack, w: length.Length) -> Stack

Set the width.

pub fn with_opts(s: Stack, opts: List(Opt)) -> Stack

Apply a list of options to a stack builder.

Search Document