AtLeastOneCheckboxGroup Class
At least one checkbox must be selected. If the last one is turned off, the active, adjacent one is turned on. The exact algorithm is explained in "Tog on Interface". The checkboxes are assumed to be ordered in the order they were added.
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