class domkit::ButtonGroup
sys::Obj domkit::ButtonGroup
@Js
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
- add
-
Convenience to add a button to
buttons
. -
Buttons in this group.
- enabled
-
Bool enabled := true
Set enabled state for this button group.
- inheritEnabled
-
Bool inheritEnabled := true
If
true
, child buttons will inherit theenabled
state of thisButtonGroup
. Iffalse
buttons can be enabled or disabled independent of group. - onBeforeSelect
-
Void onBeforeSelect(Func<Bool,ButtonGroup,Int> f)
Callback before a selection changes. Return
true
to select the new button (default), orfalse
to keep the currently selected button. - onSelect
-
Void onSelect(Func<Void,This> f)
Callback when selection in group has changed.
- selIndex
-
Int? selIndex := null
Index of selected button, or
null
if none selected.