Skip to content

Instantly share code, notes, and snippets.

@ctsstc
Last active September 22, 2025 12:12
Show Gist options
  • Select an option

  • Save ctsstc/f37bc849a8673448c8315504559a24d7 to your computer and use it in GitHub Desktop.

Select an option

Save ctsstc/f37bc849a8673448c8315504559a24d7 to your computer and use it in GitHub Desktop.
Tabs Outliner - Collapse All
treeView.treeModel.currentSession_rootNode.subnodes.forEach(node => node.setCollapsing(true))
@neviln
Copy link

neviln commented Jan 30, 2025

Is there an updated version of this code to expand all nodes and another one to collapse all nodes?
The recent update to Tabs Outliner broke the "Expand/Collapse All Nodes" button.

@abra3607
Copy link

treeView.currentSessionRowDom._ref_nodeModel.subnodes.forEach(node => treeView.togleCollapsedStateOfNode(node.idMVC))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment