CheckboxWrapper Class
A wrapper class for styled checkboxes that allows to set their states individually and en masse.
Methods
getNodes
()
JObject
Returns original checkbox nodes.
Returns:
JObject:
original checkbox nodes
setAll
Object
chainable
Toggle the state of checkboxes.
Parameters:
-
state
Boolean
Specifies the state of the checkbox: true, false
Returns:
Object:
Control object for chaining
setState
Object
chainable
Toggles the checkboxes based on the return value of the given fcn.
Parameters:
-
fcn
Function
A function to be run on each of the nodes to determine the state to be set
Returns:
Object:
Control object for chaining