Config

cascadecheckcbiconpathclicktoggledata
showcheckthemeurl

cascadecheck

Boolean   Whether node being seleted leads to parent/sub node being selected.

cbiconpath

String   Checkbox image path.

clicktoggle

String   Whether to toggle node when node clicked.

data

Object   Tree theme. Three themes provided. 'bbit-tree-lines' ,'bbit-tree-no-lines' and 'bbit-tree-arrows'.

data:[{
 id:"node1", //node id
 text:"node 1", //node text for display.
 value:"1", //node value
 showcheck:false, //whether to show checkbox
 checkstate:0, //Checkbox checking state. 0 for unchecked, 1 for partial checked, 2 for checked.
 hasChildren:true, //If hasChildren and complete set to true, and ChildNodes is empty, tree will request server to get sub node.
 isexpand:false, //Expand or collapse.
 complete:false, //See hasChildren.
 ChildNodes:[] // child nodes
 }]

showcheck

Boolean   Whether to show check box or not.

theme

String   Tree theme. Three themes provided. 'bbit-tree-lines' ,'bbit-tree-no-lines' and 'bbit-tree-arrows'.

url

String   Url for child nodes retrieving.

Events

oncheckboxclickonnodeclick

oncheckboxclick(  tree,  item,  status)

Fired when check box is clicked on.

Objecttree This tree object.
Objectitem Node item clicked on.
Numberstatus 1 for checked, 0 for unchecked.

onnodeclick(  tree,  item)

Fired when a node is clicked on.

Objecttree This tree object.
Objectitem Ndde item clicked on.