focus()
sets focus to an option of the ToggleGroup control by its id
focus(id?: string): void;
Parameters:
id: string
- optional, the id of an option
Example
form.getItem("ToggleGroup").focus("toggle_1");
If "id" is not specified, the method sets focus to the first option of the Toggle Group.