How far a task has come, or that it is going on.
Installation
Components are distributed as source. Copy it and what it depends on into your project, then change it as you need:
cargo run --release --bin amenui -- add progress --to ../my-appFiles copied: src/widgets/progress.rs, src/widgets/mod.rs
Usage
use amenui::widgets::{progress};
fn view() -> El<Msg> {
progress("p1", Some(0.4), 240.0)
}Examples
Going on
fn view() -> El<Msg> {
progress("p2", None, 240.0)
}API
| Functions | progress |
|---|---|
| Props | key, value (None: indeterminate), width. |
| Files | src/widgets/progress.rs |
| Depends on | base |
| Response to fronts | nudge (a control: pushed as one piece by fronts, held and condensing at most to Look::legible_cap) |
| Recomposition | keyed labels recompose when their text changes |
Keyboard and accessibility
| States | a filled share of the track; indeterminate shows a short segment. |
|---|---|
| Keys and messages | none. |
On the web every control is mirrored into the page as an element with its role and name, so screen readers and the browser's own focus see it (DESIGN.md §1.14).