Range input component. Used to display a draggable slider.
Works very similar to the <input type="range">
element.
The <ons-range>
element is used to display a slider.
There are several attributes that can be used to customize the behavior of the element. Most of these are the same attributes as those that can be used for <input type="range">
elements.
To set the maximum and minimum and maximum value the min
and max
attributes are used. The step
attribute can be used to change how much the value changes every step.
The element can be disabled using the disabled
attribute.
ons-range
can be combined with ng-model
in order to bind its value with a scope variable.
Name | Type | Description |
---|---|---|
disabled | Whether the element is disabled or not. Optional. |
Name | Description |
---|---|
disabled | Whether the element is disabled or not. |
value | Current value. |
Name | Description |
---|---|
material | Material Design slider |
Signature | Description |
---|---|
focus() | Focuses the range. |
blur() | Removes focus from the range. |
Focuses the range.
Removes focus from the range.
If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.
For bug reports and feature requests use our GitHub Issues page.