Skip to main content

focus()

sets focus to a thumb of Slider

focus(extra?: boolean): void;

Parameters:

extra: boolean - optional, if the range mode is activated, true will set focus to the second thumb

Example

// sets focus to the thumb;  // if the range mode is activated, sets focus to the first thumbslider.focus();
// sets focus to the second thumb if the range mode is activatedslider.focus(true);

The extra parameter can be used when a range mode of Slider is activated.

Change log:

added in v7.2