The checkbox plugin makes multiselection possible using three-state checkboxes.
If set to true all selection will be handled by checkboxes. The checkbox plugin will map UI's get_selected function to its own get_checked function and overwrite the UI reselect function. It will also disable the select_node, deselect_node and deselect_all functions. If left as false nodes can be selected and checked independently.
When set to true when programatically checking a node in the tree all of its closed parents are opened automatically.
If set to true checkboxes will be two-state only, meaning that you will be able to select parent and children independently and there will be no undetermined state.
If set to true real hidden checkboxes will be created for each element, so if the tree is part of a form, checked nodes will be submitted automatically. By default the name of the checkbox is "check_" + the ID of the LI element and the value is 1, this can be changed using the real_checkboxes_names config option.
If real checkboxes are used this function is invoked in the current tree's scope for each new checkbox that is created. It receives a single argument - the node that will contain the checkbox. The function must return an array consisting of two values - the name for the checkbox and the value for the checkbox.
Inserts the checkbox icons on the node. Used internally.
mixed node
This can be a DOM node, jQuery node or selector pointing to an element within the tree.
Repairs the checkbox state inside the node. Used internally.
mixed node
This can be a DOM node, jQuery node or selector pointing to an element within the tree.
Changes the state of a node. Used mostly internally - you'd be better off using the check_node and uncheck_node functions. Triggers an event.
mixed node
This can be a DOM node, jQuery node or selector pointing to an element within the tree.
boolean uncheck
If set to true the node is unchecked, if set to false the node is checked, otherwise - the state is toggled.
Checks a node.
mixed node
This can be a DOM node, jQuery node or selector pointing to an element within the tree.
Unchecks a node.
mixed node
This can be a DOM node, jQuery node or selector pointing to an element within the tree.
Checks all nodes.
Unchecks all nodes.
Checks if a node is checked. Returns boolean.
mixed node
This can be a DOM node, jQuery node or selector pointing to an element within the tree.
Both functions return jQuery collections.
mixed context
This can be a DOM node, jQuery node or selector pointing to an element within the tree. If specified only nodes inside the specified context are returned, otherwise the whole tree is searched.
boolean get_all
By default these functions return only top level checked/unchecked nodes (if a node is checked its children are note returned), if this parameter is set to true they will return all checked/unchecked nodes.
Show or hide the checkbox icons.