You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There is no way to collapse / expand the root node.
Describe the solution you'd like
Something like mind.collapseNode(mind.currentNode) or mind.expandNode(mind.currentNode) or mind.toggleNode(<root node>). Or something built-in the context menu. I could set expanded: bool to collapse / expand a node but it does not work on the root node.
Describe alternatives you've considered
I could set expanded: bool to collapse / expand a node but it does not work on the root node.
The text was updated successfully, but these errors were encountered:
It's not easy to find a specific position to place the expander of root node. I tried another mindmap app (xmind) just now, it seems also doesn't let you collapse the root node.
It doesn't necessarily need to be an expander icon on the root node. It could be in the context menu.
What I've done is oncontextmenu, if nodeObj.expanded == true, I set the contextMenuOption name to "Collapse All", otherwise it is "Expand All". Then onclick, I set mind.currentNode.nodeObj.expanded to true/false, and do the same recursively on mind.currentNode.nodeObj.children.
The only problem is the root node nodeObj does not effectively have an expanded property.
Is your feature request related to a problem? Please describe.
There is no way to collapse / expand the root node.
Describe the solution you'd like
Something like
mind.collapseNode(mind.currentNode)
ormind.expandNode(mind.currentNode)
ormind.toggleNode(<root node>)
. Or something built-in the context menu. I could setexpanded: bool
to collapse / expand a node but it does not work on the root node.Describe alternatives you've considered
I could set
expanded: bool
to collapse / expand a node but it does not work on the root node.The text was updated successfully, but these errors were encountered: