vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

open_all method #2446

Closed sagittaracc closed 4 years ago

sagittaracc commented 4 years ago

The documentation says: opens all nodes within a node (or the tree), revealing their children. If the node is not loaded it will be loaded and opened once ready.

But I don't need to load nodes which are not loaded yet. How can I do that?

vakata commented 4 years ago

I am not sure why you would need this, but anyway - you can traverse all nodes from jstree's internal structure and check their loaded and children properties - gather nodes which are loaded and have children in an array and then call open_node with that array.