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.

Parameters:

Name Type Description

[component]

ToggleButton | null

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

Returns:

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

Type: ToggleButton | Array.<ToggleButton>