setValue
sets a value for the slider
setValue(value: string | number | number[]): void;
Parameters:
value: string | number | array
- the value to be set for Slider
Example
// sets value as a number
slider.setValue(2);
// sets value as an array (for the range mode)
slider.setValue([2,10]);
Related sample: Slider. Set value