Open only first level of a node (Level 1)

304 views
Skip to first unread message

Henry Kerval

unread,
Oct 27, 2019, 2:53:02 AM10/27/19
to jsTree
I want to open only the first level of a node. (childs are all opened=false)

I've tried to directly change the state.opened with a loop in the _model.data.

But when I call refresh_node nothing happens
It seems refresh_node reload the nodes, can whe "refresh" or "update" the tree without reloading ?

Any clues ?

Thanks

Xiuhui Liang

unread,
Jun 17, 2020, 11:21:08 AM6/17/20
to jsTree
hi, do you have any solution?

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

unread,
Jul 9, 2020, 3:55:20 AM7/9/20
to jsTree
Ive used:
$('#tree').jstree().open_node(ID);

неділя, 27 жовтня 2019 р. 08:53:02 UTC+2 користувач Henry Kerval написав:
Reply all
Reply to author
Forward
0 new messages