Config
cascadecheck | cbiconpath | clicktoggle | data |
showcheck | theme | url |
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
oncheckboxclick | onnodeclick |
oncheckboxclick(  tree,  item,  status)
Fired when check box is clicked on.
Object | tree | This tree object. |
Object | item | Node item clicked on. |
Number | status | 1 for checked, 0 for unchecked. |
onnodeclick(  tree,  item)
Fired when a node is clicked on.
Object | tree | This tree object. |
Object | item | Ndde item clicked on. |