Use our custom Angular Range inputs for consistent cross-browser styling and built-in customization.
OverviewCreate custom range controls with <input cFormControl type="range">
. The track (the background) and thumb (the value) are both styled to appear the same across browsers. As only Edge Legacy and Firefox supports "filling" their track from the left or right of the thumb as a means to visually indicate progress, we do not currently support it.
Example range - 50
DisabledAdd the disabled
boolean attribute on an input to give it a grayed out appearance and remove pointer events.
Disabled range
Min and maxRange inputs have implicit values for min="0"
and max="100"
, respectively. You may specify new values for those using the min
and max
attributes.
Example range - 4
StepsBy default, range inputs "snap" to integer values. To change this, you can specify a step value. In the example below, we double the number of steps by using step="0.5"
.
Example range - 3
API reference Form Module cFormControltype="range" directive
Inputs name description type defaultmax
Specifies the maximum value for the component. number
100 min
Specifies the minimum value for the component. number
0 steps
Specifies the interval between legal numbers in the component. number
1 type
Specifies the html type of input element. range
required value
The value attribute of the input. number
(max-min)/2 disabled
Toggle the disabled state for the component. boolean
false
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4