Skip to main content

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 slider
  • oldValue: number - the previous value of the slider
  • isRange: 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. Slider Events