noUiSlider
Lightweight JavaScript range slider.
Please note, this field depend on the following library:
Special properties of field
Property
Type
Description
max
Number
Largest value that the slider can select.
min
Number
Smallest value that the slider can select.
sliderOptions
Object
Settings of slider component. See details below.
values
Array
or Function
List of items. It can be an array with items, or a function, what is resulted an array. The item will be a String
or an object with an id
and a name
properties.
sliderOptions
sliderOptions
For more details, see the official noUiSlider documentation.
Property
Default
Accepted values
Description
connect
"lower"
"lower"
, "upper"
, Boolean
The connect setting can be used to control the (green) bar between the handles, or the edges of the slider. Use "lower"
to connect to the lower side, or "upper"
to connect to the upper side. Setting true
sets the bar between the handles.
margin
none
Number
When using two handles, the minimum distance between the handles can be set using the margin option. The margin value is relative to the value set in 'range'. This option is only available on standard linear sliders.
limit
none
Number
The limit option is the oposite of the margin option, limiting the maximum distance between two handles. As with the margin option, the limit option can only be used on linear sliders.
step
none
Number
By default, the slider slides fluently. In order to make the handles jump between intervals, you can use this option. The step option is relative to the values provided to range
.
orientation
"horizontal"
"vertical"
, "horizontal"
The orientation setting can be used to set the slider to "vertical"
or "horizontal"
. Set dimensions! Vertical sliders don't assume a default height, so you'll need to set one. You can use any unit you want, including %
or px
.
direction
"ltr"
"ltr"
, "rtl"
By default the sliders are top-to-bottom and left-to-right, but you can change this using the direction option, which decides where the upper side of the slider is.
tooltips
false
Boolean
, formatter
, Array[formatter or false]
animate
true
Boolean
range
none
Object
pips
none
Object
Usage
Simple slider:
Stepped slider with custom scale:
Vertical reversed non-linear slider with scale:
Last updated