plushie/widget/progress_bar

ProgressBar widget builder.

Types

pub opaque type ProgressBar

Values

pub fn a11y(pb: ProgressBar, a: a11y.A11y) -> ProgressBar

Set accessibility properties for this widget.

pub fn build(pb: ProgressBar) -> node.Node

Build the progress bar into a renderable Node.

pub fn height(pb: ProgressBar, h: Float) -> ProgressBar

Set the height.

pub fn label(pb: ProgressBar, l: String) -> ProgressBar

Set the label text.

pub fn new(
  id: String,
  range: #(Float, Float),
  value: Float,
) -> ProgressBar

Create a new progress bar builder.

pub fn style(pb: ProgressBar, s: String) -> ProgressBar

Set the style.

pub fn vertical(pb: ProgressBar, v: Bool) -> ProgressBar

Set whether the progress bar is vertical.

pub fn width(pb: ProgressBar, w: length.Length) -> ProgressBar

Set the width.

Search Document