Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Loading...
main.ts
styles.css
Features
- Provides context for assistive technology to read the progress of a task.
Installation
Get started with importing the directive:
API Reference
Root
RdxProgressRootDirective
Prop | Type | Default |
---|---|---|
id | string | `rdx-progress-bar-${idIterator++}` |
rdxMax | number | DEFAULT_MAX |
rdxValue | number | MIN_PERCENT |
rdxValueLabel | function | (value, max) =>
this.defaultGetValueLabel(value, max) |
Data attribute | Values |
---|---|
[data-state] | "complete" | "indeterminate" | "loading" |
[data-value] | The current value |
[data-max] | The max value |
Indicator
RdxProgressIndicatorDirective
Used to show the progress visually. It also makes progress accessible to assistive technologies.
Data attribute | Values |
---|---|
[data-state] | "complete" | "indeterminate" | "loading" |
[data-value] | The current value |
[data-max] | The max value |