selectedValue([value])

Class: ToggleButton.

Description:

Gets or sets the selected value within this ToggleButton group.

If a value is provided, selects a ToggleButton within the group that matches the given value (including this one).

Parameters:

Name Type Description

[value]

number | string

Value to select within the group.

Returns:

If value is provided, an instance of this object is returned. If no argument is provided, a value of the currently selected radio button in the group is returned, or null, if no button is selected or selected button doesn't have a value.

Type: ToggleButton | number | string | null