hide()
hides either a checkbox of CheckboxGroup or the whole CheckboxGroup
hide(id?: string): void;
Parameters:
id: string
- optional, the id of a specific element inside the CheckboxGroup control
Example
form.getItem("CheckboxGroup").hide("checkbox_1");
If the id of a checkbox is not specified, the method hides CheckboxGroup with all its checkboxes.
Related sample: Form. Hide/Show control
Change log: The id parameter was added in v8.0