new GOWN.ToggleGroup()
Controls the selection of two or more toggles
(RadioButtons/ToggleButton/Check instances)
where only one may be selected at a time
Extends
- EventEmitter
Members
-
static,readonlyGOWN.ToggleGroup.CHANGEString
-
Dispatched when the toggle group selection changes.
-
isSelectionRequiredbool
-
Determines if the user can deselect the currently selected item or not.
- Default Value:
- true
-
selectedIndexNumber
-
The index of the currently selected toggle.
-
selectedItem
-
The currently selected toggle
Methods
-
addItem(item)
-
Add an toggle to the toggle group
Name Type Description item
GOWN.ToggleButton The toggle to add to the toggle group -
destroy()
-
Remove all event listener, clear items-list and set selectedItem to null.
-
removeItem(item)
-
Remove an toggle from the toggle group
Name Type Description item
GOWN.ToggleButton The toggle to add to the toggle group