plushie/widget/progress_bar
ProgressBar widget builder.
Types
Option type for progress bar properties.
pub type Opt {
Width(length.Length)
Height(Float)
Style(String)
Vertical(Bool)
Label(String)
A11y(a11y.A11y)
}
Constructors
-
Width(length.Length) -
Height(Float) -
Style(String) -
Vertical(Bool) -
Label(String) -
A11y(a11y.A11y)
pub opaque type ProgressBar
Values
pub fn a11y(pb: ProgressBar, a: a11y.A11y) -> ProgressBar
Set accessibility properties for this widget.
pub fn new(
id: String,
range: #(Float, Float),
value: Float,
) -> ProgressBar
Create a new progress bar builder.
pub fn value_animated(
pb: ProgressBar,
animation: node.PropValue,
) -> ProgressBar
Set value to an animation descriptor (Transition, Spring, or
Sequence). The descriptor must be pre-encoded via its module’s
encode function.
pub fn vertical(pb: ProgressBar, v: Bool) -> ProgressBar
Set whether the progress bar is vertical.
pub fn with_opts(pb: ProgressBar, opts: List(Opt)) -> ProgressBar
Apply a list of options to a progress bar builder.