I am using JSTree & working on a scenario in which I have to perform different actions on the checked, unchecked and select event of node. "select_node" works fines as I only need the node details there but I need PROPER list of checked nodes on check_node & uncheck_node events.
check_node The "data.selected.length" return 1 if root along with all its is child are selected, But I want full list.
uncheck_node Unchecking the root return the length of checked nodes before unchecking the nodes Here my need is to get the length of checked nodes after uncheck them
[Here Is My Code on JSFiddle][1]
[1]: http://ift.tt/28Prcvj
Aucun commentaire:
Enregistrer un commentaire