plushie/widget/scrollable

Scrollable widget builder (scrollable viewport container).

Types

pub opaque type Scrollable

Values

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

Set accessibility properties for this widget.

pub fn anchor(s: Scrollable, a: anchor.Anchor) -> Scrollable

Set the scroll anchor.

pub fn auto_scroll(s: Scrollable, enabled: Bool) -> Scrollable

Set whether auto-scroll is enabled.

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

Build the scrollable into a renderable Node.

pub fn direction(
  s: Scrollable,
  d: direction.Direction,
) -> Scrollable

Set the direction.

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

Add multiple child nodes.

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

Set the height.

pub fn new(id: String) -> Scrollable

Create a new scrollable builder.

pub fn on_scroll(s: Scrollable, enabled: Bool) -> Scrollable

Enable the scroll event.

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

Add a child node.

pub fn scrollbar_color(
  s: Scrollable,
  c: color.Color,
) -> Scrollable

Set the scrollbar track color.

pub fn scrollbar_margin(s: Scrollable, m: Float) -> Scrollable

Set the scrollbar margin.

pub fn scrollbar_width(s: Scrollable, w: Float) -> Scrollable

Set the scrollbar width.

pub fn scroller_color(
  s: Scrollable,
  c: color.Color,
) -> Scrollable

Set the scroller (thumb) color.

pub fn scroller_width(s: Scrollable, w: Float) -> Scrollable

Set the scroller (thumb) width.

pub fn spacing(s: Scrollable, sp: Int) -> Scrollable

Set the spacing between children.

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

Set the width.

Search Document