Range Slider
It is an easy and responsive range slider.
Official documentation
For more detailed information and examples, see the official documentation: Ion RangeSlider.js .
How to use?
Copy-paste the stylesheet <link>
into your <head>
to load the CSS.
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Basic parameters
Start without parameters
Set min value, max value and start point
Set type to double and specify range, also showing grid and adding prefix "$"
Set up range and step
Set up range with negative values
Using step 250
Set up range with fractional values, using fractional step
Select required amount
Set up range with a single range result
Set up range with a single (editable) result
Set up range with double range results
Range with Bar charts
Set up range with bar chart. For more information about Bar charts, see Charts page.
Set up range with double bar chart results
Range with Area charts
Set up range with area chart. For more information about Area charts, see Charts page.
Set up range with double area chart results
JavaScript behavior
For a full JavaScript behavior, see the official documentation: Settings .
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-type=""
.
Attribute | Description |
---|---|
|
If data-type="" is set to single , then the block ID to which the current value will be transmitted. If data-type="double" , then the block ID to which the value will be transmitted from the left slider. |
|
If data-type="double" , then the block ID to which the value will be transmitted from the right slider. |
|
ID of the block to which the value will be transmitted from data-secondary-value='{"values": [1,2,3,4,5,6]}' |
|
An array with data for a chart, in which values are the values of the minor chart, and steps — the value of the main chart upon reaching which the corresponding value from the values will be displayed. |
|
If is set to true , it turns on the slider mode with graphs. |
|
Graph ID in the foreground - this graph will change the width depending on the position of the sliders. |