API Docs for: 0.0.8-0
Show:

CheckboxWrapper Class

A wrapper class for styled checkboxes that allows to set their states individually and en masse.

Constructor

CheckboxWrapper

()

Item Index

Methods

getNodes

() JObject

Returns original checkbox nodes.

Returns:

JObject:

original checkbox nodes

setAll

(
  • state
)
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

(
  • fcn
)
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