group([component])
Class: RadioButton.
Description:
Adds this RadioButton to the group of another RadioButton 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 RadioButton to join its group.
- Pass
nullto leave the current group (if any) and create its own group.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
RadioButton | null |
A RadioButton to join, or |
Returns:
This RadioButton, for chaining when called with parameter, otherwise an Array of all RadioButton components in its group.
Type: RadioButton | Array.<RadioButton>
