isDisabled()
checks whether a ToggleGroup control or a specific element inside the control is disabled
isDisabled(id?: string): boolean;
Parameters:
id: string- optional, the id of a specific element inside the ToggleGroup control
Returns:
true, if a control or a specific element is disabled; otherwise, false.
Example
form.getItem("ToggleGroup").isDisabled("toggle_1"); // -> true/false