Optional
animateEnable/disable CSS animations
Optional
animateEnable/disable CSS animations while moving the slider
Optional
ariaUse to add a label directly to the slider for accessibility. Adds the aria-label attribute.
Optional
ariaUse to add a label directly to the slider range for accessibility. Adds the aria-label attribute.
Optional
ariaUse instead of ariaLabel to reference the id of an element which will be used to label the slider. Adds the aria-labelledby attribute.
Optional
ariaUse instead of ariaLabelHigh to reference the id of an element which will be used to label the slider range. Adds the aria-labelledby attribute.
Optional
autoSet to false to disable the auto-hiding behavior of the limit labels.
Optional
barUse to increase rendering performance. If the value is not provided, the slider calculates the with/height of the bar
Optional
bindSet to true to bind the index of the selected item to value model and valueHigh model.
Optional
boundSet to true to keep the slider labels inside the slider bounds.
Optional
ceilMaximum value for a slider. Not applicable when using stepsArray.
Optional
combineCustom function for combining overlapping labels in range slider. It takes the min and max values (already translated with translate fuction) and should return how these two values should be combined. If not provided, the default function will join the two values with ' - ' as separator.
Optional
customFunction that returns the value for a given position on the slider. The position is a percentage between 0 and 1. The function should be monotonically increasing or decreasing; otherwise the slider may behave incorrectly.
Optional
customFunction that returns the position on the slider for a given value. The position must be a percentage between 0 and 1. The function should be monotonically increasing or decreasing; otherwise the slider may behave incorrectly.
Optional
disabledSet to true to disable the slider.
Optional
draggableWhen set to true and using a range slider, the range can be dragged by the selection bar. Applies to range slider only.
Optional
draggableSame as draggableRange but the slider range can't be changed. Applies to range slider only.
Optional
enforceSet to true to force the value(s) to be normalised to allowed range (floor to ceil), even when modified from the outside. When set to false, if the model values are modified from outside the slider, and they are outside allowed range, the slider may be rendered incorrectly. However, setting this to false may be useful if you want to perform custom normalisation.
Optional
enforceSet to true to force the value(s) to be rounded to the step, even when modified from the outside. When set to false, if the model values are modified from outside the slider, they are not rounded and can be between two steps.
Optional
enforceSet to true to force the value(s) to be rounded to the nearest step value, even when modified from the outside. When set to false, if the model values are modified from outside the slider, and they are outside allowed range, the slider may be rendered incorrectly. However, setting this to false may be useful if you want to perform custom normalisation.
Optional
floorMinimum value for a slider. Not applicable when using stepsArray.
Optional
getUse to display legend under ticks (thus, it needs to be used along with showTicks or showTicksValues). The function will be called with each tick value and returned content will be displayed under the tick as a legend. If the returned value is null, then no legend is displayed under the corresponding tick.You can also directly provide the legend values in the stepsArray option.
Optional
getFunction that returns the current color of a pointer. If your color won't change, don't use this option but set it through CSS. If the returned color depends on a model value (either value or valueHigh), you should use the argument passed to the function. Indeed, when the function is called, there is no certainty that the model has already been updated. To handle range slider pointers independently, you should evaluate pointerType within the given function where "min" stands for value model and "max" for valueHigh model values.
Optional
getFunction that returns the current color of the selection bar. If your color won't change, don't use this option but set it through CSS. If the returned color depends on a model value (either value or valueHigh), you should use the argument passed to the function. Indeed, when the function is called, there is no certainty that the model has already been updated.
Optional
getUse to display a custom legend of a stepItem from stepsArray. It will be the same as getLegend but for stepsArray.
Optional
getFunction that returns the color of a tick. showTicks must be enabled.
Optional
handleUse to increase rendering performance. If the value is not provided, the slider calculates the with/height of the handle
Optional
hideSet to true to hide min / max labels
Optional
hideSet to true to hide pointer labels
Optional
keyboardHandles are focusable (on click or with tab) and can be modified using the following keyboard controls: Left/bottom arrows: -1 Right/top arrows: +1 Page-down: -10% Page-up: +10% Home: minimum value End: maximum value
Optional
logSet to true to use a logarithmic scale to display the slider.
Optional
maxThe maximum value authorized on the slider. When using stepsArray, expressed as index into stepsArray.
Optional
maxThe maximum range authorized on the slider. Applies to range slider only. When using stepsArray, expressed as index into stepsArray.
Optional
minThe minimum value authorized on the slider. When using stepsArray, expressed as index into stepsArray.
Optional
minThe minimum range authorized on the slider. Applies to range slider only. When using stepsArray, expressed as index into stepsArray.
Optional
noSet to true to prevent to user from switching the min and max handles. Applies to range slider only.
Optional
onlySet to true to only bind events on slider handles.
Optional
precisionPrecision limit for calculated values. Values used in calculations will be rounded to this number of significant digits to prevent accumulating small floating-point errors.
Optional
pushSet to true to have a push behavior. When the min handle goes above the max, the max is moved as well (and vice-versa). The range between min and max is defined by the step option (defaults to 1) and can also be overriden by the minRange option. Applies to range slider only.
Optional
readSet to true to make the slider read-only.
Optional
reversedSet to true to reverse keyboard navigation: Right/top arrows: -1 Left/bottom arrows: +1 Page-up: -10% Page-down: +10% End: minimum value Home: maximum value
Optional
rightSet to true to show graphs right to left. If vertical is true it will be from top to bottom and left / right arrow functions reversed.
Optional
rotateIf you display the slider in an element that uses transform: rotate(90deg), set the rotate value to 90 so that the slider is rendered properly and the events are handled correctly. Value is in degrees.
Optional
scaleIf you display the slider in an element that uses transform: scale(0.5), set the scale value to 2 so that the slider is rendered properly and the events are handled correctly.
Optional
selectionUse to display the selection bar as a gradient. The given object must contain from and to properties which are colors.
Optional
showOnly for range slider. Set to true to visualize in different colour the areas on the left/right (top/bottom for vertical range slider) of selection bar between the handles.
Optional
showSet to true to always show the selection bar before the slider handle.
Optional
showSet to true to always show the selection bar after the slider handle.
Optional
showSet a number to draw the selection bar between this value and the slider handle. When using stepsArray, expressed as index into stepsArray.
Optional
showSet to true to display a tick for each step of the slider.
Optional
showSet to true to display a tick and the step value for each step of the slider..
Optional
stepStep between each value. Not applicable when using stepsArray.
Optional
stepsIf you want to display a slider with non linear/number steps. Just pass an array with each slider value and that's it; the floor, ceil and step settings of the slider will be computed automatically. By default, the value model and valueHigh model values will be the value of the selected item in the stepsArray. They can also be bound to the index of the selected item by setting the bindIndexForStepsArray option to true.
Optional
ticksUse to display ticks at specific positions. The array contains the index of the ticks that should be displayed. For example, [0, 1, 5] will display a tick for the first, second and sixth values.
Optional
tickOptional
ticksUsed to display a tooltip when a tick is hovered. Set to a function that returns the tooltip content for a given value.
Optional
ticksSame as ticksTooltip but for ticks values.
Optional
tickOptional
translateCustom translate function. Use this if you want to translate values displayed on the slider.
Optional
verticalSet to true to display the slider vertically. The slider will take the full height of its parent. Changing this value at runtime is not currently supported.
Slider options