group([component])
Class: ToggleButton.
Description:
Adds this ToggleButton to the group of another ToggleButton while abandoning current group, or removes it from its current group and creates its own when you pass null.
- Call without parameters to get an Array of all components in its group.
- Pass another ToggleButton to join its group.
- Pass
nullto leave the current group (if any) and create its own group.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
ToggleButton | null |
A ToggleButton to join, or |
Returns:
This ToggleButton, for chaining when called with parameter, otherwise an Array of all ToggleButton components in its group.
Type: ToggleButton | Array.<ToggleButton>
