CheckboxGroup Class
Base class for enforcing constraints on groups of checkboxes.
Derived classes must override enforceConstraints()
.
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
Derived classes must override this function to implement the desired behavior.
Parameters:
-
cb_list
String | Object | ArrayThe list of checkboxes
-
index
IntThe index of the checkbox that changed