Skip to content

Auto-collapse other ForceDirectedTree nodes when node is exploded

By default when node with children is clicked it is “exploded” - children are shown. This demo shows how we can catch such events to automatically collapse all other open nodes when that happens.

Open in:New tab
Auto-collapse other nodes when node is explodedauto-collapse-other-nodes-when-node-is-exploded