plushie/widget/themer

Themer widget builder (per-subtree theme override).

Types

Option type for themer properties.

pub type Opt {
  A11y(a11y.A11y)
}

Constructors

pub opaque type Themer

Values

pub fn a11y(th: Themer, a: a11y.A11y) -> Themer

Set accessibility properties for this widget.

pub fn build(th: Themer) -> node.Node

Build the themer into a renderable Node.

pub fn extend(th: Themer, children: List(node.Node)) -> Themer

Add multiple child nodes.

pub fn new(id: String, t: theme.Theme) -> Themer

Create a new themer builder.

pub fn push(th: Themer, child: node.Node) -> Themer

Add a child node.

pub fn with_opts(th: Themer, opts: List(Opt)) -> Themer

Apply a list of options to a themer builder.

Search Document