change
fires on change of the slider value
change: (value: number, oldValue: number, isRange: boolean) => void;
Parameters:
value: number
- the new value set for the slideroldValue: number
- the previous value of the sliderisRange: boolean
- defines, whether the range mode is activated for the slider
Example
slider.events.on("change", function(value, oldValue, isRange){
console.log("The value of a slider has changed to "+slider.getValue());
});
Related sample: Slider. Events