jsTree Open a branch

后端 未结 8 747
长发绾君心
长发绾君心 2021-02-02 11:07

I am using the JQuery plugin jsTree, http://www.jstree.com/ I am able to expand the whole tree with the following method:

$(\"#tree\").jstree(\"open_all\");
         


        
8条回答
  •  醉话见心
    2021-02-02 12:06

    just use this if you use json

    $("#treeId").on
    ('loaded.jstree', function() {
     $("#treeId").jstree("open_node", $("#nodeId"));
     });
    

提交回复
热议问题