plushie/widget/pick_list

Pick list widget builder (dropdown picker).

Types

pub opaque type PickList

Values

pub fn a11y(pl: PickList, a: a11y.A11y) -> PickList

Set accessibility properties for this widget.

pub fn build(pl: PickList) -> node.Node

Build the pick list into a renderable Node.

pub fn ellipsis(pl: PickList, e: String) -> PickList

Set the text ellipsis mode.

pub fn font(pl: PickList, f: font.Font) -> PickList

Set the font.

pub fn handle(pl: PickList, h: node.PropValue) -> PickList

Set the dropdown handle style. Pass a DictVal with a “type” key.

pub fn line_height(pl: PickList, h: Float) -> PickList

Set the line height.

pub fn menu_height(pl: PickList, h: Float) -> PickList

Set the dropdown menu height.

pub fn menu_style(pl: PickList, ms: node.PropValue) -> PickList

Set dropdown menu style overrides. Pass a DictVal.

pub fn new(
  id: String,
  options: List(String),
  selected: option.Option(String),
) -> PickList

Create a new pick list builder.

pub fn on_close(pl: PickList, enabled: Bool) -> PickList

Enable the close event.

pub fn on_open(pl: PickList, enabled: Bool) -> PickList

Enable the open event.

pub fn padding(pl: PickList, p: padding.Padding) -> PickList

Set the padding.

pub fn placeholder(pl: PickList, p: String) -> PickList

Set the placeholder text.

pub fn shaping(pl: PickList, s: shaping.Shaping) -> PickList

Set the text shaping strategy.

pub fn style(pl: PickList, s: String) -> PickList

Set the style.

pub fn text_size(pl: PickList, s: Float) -> PickList

Set the text size in pixels.

pub fn width(pl: PickList, w: length.Length) -> PickList

Set the width.

Search Document