jstree with default cheked attribute and find node by mask -


i integrated jstree site, problem that, have no idea how give jstree node element checked attribute default, jstree - precheck checkboxes not case. data-jstree='{"selected":true}' working don't want element selected. , 1 more thing, not find anywhere: possible nodes id (even if not selected), or can node id mask? in advance

the latest commit fixes , enables use (i guess need):

<div id="jstree">     <ul>         <li data-jstree='{"selected":true}'>root 1</li>         <li data-jstree='{"state":{"checked":true}}'>root 1</li>     </ul> </div> 

you can download latest code here: https://github.com/vakata/jstree/archive/master.zip


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -