Framework:
  • JavaScript / Vanilla JS
  • React.js
  • Vue.js
On this page

Angular Range Component

Use our custom Angular Range inputs for consistent cross-browser styling and built-in customization.

Loading...
## Overview Create 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.
Loading...
Loading...
Loading...
## Disabled Add the `disabled` boolean attribute on an input to give it a grayed out appearance and remove pointer events.
Loading...
Loading...
Loading...
## Min and max Range inputs have implicit values for `min="0"` and `max="100"`, respectively. You may specify new values for those using the `min` and `max` attributes.
Loading...
Loading...
Loading...
## Steps By 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"`.
Loading...
Loading...
Loading...
--- ## API reference ### Form Module --- ### cFormControl type="range" _directive_ ##### Inputs
| name | description | type | default | | ---- | ----------- | ---- | ------- | | `max` | 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_ |
  • GitHub
  • Twitter
  • Support
  • CoreUI (Vanilla)
  • CoreUI for React.js
  • CoreUI for Vue.js

CoreUI for Angular is Open Source UI Components Library for Angular.

Currently v5.4.12 Code licensed MIT , docs CC BY 3.0 .
CoreUI PRO requires a commercial license.