Class: ToggleGroup

ToggleGroup

ToggleGroup

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.

selectedItemGOWN.ToggleButton

The currently selected toggle

Methods

Add an toggle to the toggle group
Name Type Description
item GOWN.ToggleButton The toggle to add to the toggle group
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