jsTree: adding Expand All and Collapse All buttons

May 04, 2011 15:50


Originally published at Sara Trice. You can comment here or there.

The documentation for jsTree is thorough, but not particularly easy to read. If you are looking for an easy way to add “Expand All” and “Collapse All” buttons, here’s one way:

where ‘#tree_container_id’ is, of course, the ID of the container node for your tree.

uncategorized

Previous post Next post
Up