how to collapse the jstree node to 3 depth?

146 views
Skip to first unread message

Xiuhui Liang

unread,
Jun 17, 2020, 11:11:43 AM6/17/20
to jsTree
Hi
how to collapse the jstree node to 3 depth? 

Main Node 
|_ Parent Node 1
       |_ Child Node 1.1
              |_ Grandchild Node 1.1.1
|_ Parent Node 2
       |_ Child Node 2.1
              |_ Grandchild Node 2.1.1
              |_ Grandchild Node 2.1.2

Андрей Гладенко

unread,
Jul 9, 2020, 3:57:52 AM7/9/20
to jsTree
may be like this:
$('#tree').jstree(true)..open_all(id_of_ Grandchild Node 2.1.2)
$('#tree').jstree(true)..open_all(id_of_ Grandchild Node 1.1.1)

середа, 17 червня 2020 р. 18:11:43 UTC+3 користувач hui написав:
Reply all
Reply to author
Forward
0 new messages