Constructor
new ProgressBar(valueopt)
ProgressBar constructor. Creates an instance of ProgressBar UI component.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value | number | <optional> | Numeric value between 0 and 100. |
Classes
Methods
orientation(orientation) → {Orientation|ProgressBar}
Sets or get an orientation of the progress bar as horizontal or vertical.
Parameters:
| Name | Type | Description |
|---|---|---|
orientation | Orientation | Orientation of progress bar. Default is horizontal. |
Returns:
Returns this component instance when setting value, otherwise returns current value.
- Type:
- Orientation |
ProgressBar
value(valueopt) → {number|ProgressBar}
Sets or get a numeric value as percent of process.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value | number | <optional> | Numeric value between 0 and 100 that represents percent of progress. |
Returns:
Returns this instance of ProgressBar when setting a value, otherwise returns current value.
- Type:
- number |
ProgressBar