ButtonGroup
@Js
class ButtonGroup : Obj
ButtonGroup groups a set of toggle or radio buttons and handles making sure only one button in group is selected at a time.
See also: docDomkit, ToggleButton, RadioButton
Buttons in this group
If true, child buttons will inherit the enabled state of this ButtonGroup
Index of selected button, or null if none selected
Set enabled state for this button group
Convenience to add a button to buttons
Callback before a selection changes
Callback when selection in group has changed
This add(Elem button)
Convenience to add a button to buttons.
Elem[] : buttons
Buttons in this group.
Bool : enabled
Set enabled state for this button group.
Bool : inheritEnabled
If true, child buttons will inherit the enabled state of this ButtonGroup. If false buttons can be enabled or disabled independent of group.
Void onBeforeSelect(|ButtonGroup,Int->Bool| f)
Callback before a selection changes. Return true to select the new button (default), or false to keep the currently selected button.
Void onSelect(|This| f)
Callback when selection in group has changed.
Int? : selIndex
Index of selected button, or null if none selected.