focus()
sets focus to a thumb of a Slider control
focus(extra?: boolean): void;
Parameters:
extra: boolean
- optional, if a Slider control is in the range mode, 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 thumb
form.getItem("slider").focus();
// sets focus to the second thumb if the range mode is activated
form.getItem("slider").focus(true);
Change log:
added in v7.2