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?
To add hs.range-slider.js
in your page, wrap any block in
a parent element with an ID or class and add the same ID or the class in the JS INIT function of the
plugin.
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
Nova to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
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. |