AtMostOneCheckboxGroup Class
At most one checkbox can be selected. If one is turned on, the active one is turned off.
Constructor
Item Index
Methods
allChecked
()
Boolean
Returns:
Boolean:
true
if all checkboxes are checked
allDisabled
()
Boolean
Returns:
Boolean:
true
if all checkboxes are disabled
allUnchecked
()
Boolean
Returns:
Boolean:
true
if all checkboxes are unchecked
checkboxChanged
(
-
cb
Call this if you modify the checkbox programmatically, since that
will not fire a click event.
Parameters:
-
cb
Node | Stringcheckbox that was modified
enforceConstraints
(
-
cb_list
-
index
Parameters:
-
cb_list
String | Object | ArrayThe list of checkboxes
-
index
IntThe index of the checkbox that changed