How do I open all nodes in jquery Jstree?

前端 未结 9 1782
感情败类
感情败类 2021-02-05 00:07

I am using the following code:

$("#treeview").jstree();
$("#treeview").jstree(\'open_all\');

With the following html:

9条回答
  •  灰色年华
    2021-02-05 00:42

    When using html data 'you can set the jstree-open class on any

  • element to make it initially extended, so that its children are visible.' - https://www.jstree.com/docs/html/

  • My Open Node
提交回复
热议问题