rangeSlider
This is a range slider input field.
Please note, this field depend on the following library:
ion.rangeSlider.css
ion.rangeSlider.skinHTML5.css
Special properties of field
Property | Default | Accepted values | Description |
| none | Indicates whether the value of the control can be automatically completed by the browser. | |
| 100 |
| Max value (need to use |
| 10 |
| Min value (need to use |
| none |
| Placeholder text for input field |
|
|
| If true, the input field is read only |
|
|
| Settings to slider. See details below. |
| 1 |
| Set sliders step. Always > 0. Could be fractional. |
rangeSliderOptions
rangeSliderOptions
For more details, see the official rangeSlider documentation.
Property | Default | Accepted values | Description |
| "single" |
| Choose slider type, could be single - for one handle, or double for two handles |
| min |
| Set start position for left handle (or for single handle) |
| max |
| Set start position for right handle |
| 1 |
| Set sliders step. Always > 0. Could be fractional. |
| none |
| Set minimum diapason between sliders. Only in "double" type |
| none |
| Set maximum diapason between sliders. Only in "double" type |
| false |
| Allow user to drag whole range. Only in "double" type (beta) |
| false |
| Fix position of left (or single) handle. |
| min |
| Set minimum limit for left handle. |
| max |
| Set the maximum limit for left handle |
| false |
| Highlight the limits for left handle |
| false |
| Fix position of right handle. |
| min |
| Set the minimum limit for right handle |
| max |
| Set the maximum limit for right handle |
| false |
| Highlight the limits for right handle |
| true |
| Improve readability of long numbers. 10000000 → 10 000 000 |
| " " |
| Set up your own separator for long numbers. 10 000, 10.000, 10-000, etc. |
|
|
| Set up your own prettify function. Can be anything. For example, you can set up unix time as slider values and than transform them to cool looking dates. |
| false |
| Slider will be always inside it's container. |
| false |
| Activates keyboard controls. Move left: ←, ↓, A, S. Move right: →, ↑, W, D. |
| 5 |
| Movement step, than controling from keyboard. In percents. |
| false |
| Enables grid of values. |
| true |
| Set left and right grid borders. |
| 4 |
| Number of grid units. |
| false |
| Snap grid to sliders step (step param). If activated, grid_num will not be used. |
| false |
| Hides min and max labels |
| false |
| Hide from and to lables |
| none |
| Set prefix for values. Will be set up right before the number: $100 |
| none |
| Set postfix for values. Will be set up right after the number: 100k |
| none |
| Special postfix, used only for maximum value. Will be showed after handle will reach maximum right position. For example 0 — 100+ |
| true |
| Used for "double" type and only if prefix or postfix was set up. Determine how to decorate close values. For example: $10k — $100k or $10 — 100k |
| " — " |
| Set your own separator for close values. Used for "double" type. Default: 10 — 100. Or you may set: 10 to 100, 10 + 100, 10 → 100 etc. |
| " ; " |
| Separator for double values in input value property. |
Usage
Simple slider with one value
In this example the value will be a Number
like this:
Double range slider
In this example the value will be an array of numbers:
Last updated