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.

Parameters:

Name Type Description

[component]

RadioButton | null

A RadioButton to join, or null to leave the current group. Omit to get the grouped RadioButton components.

Returns:

This RadioButton, for chaining when called with parameter, otherwise an Array of all RadioButton components in its group.

Type: RadioButton | Array.<RadioButton>