Is there a built-in way to enable hiding or expanding of all the child nodes of a node? #686
Answered
by
bcakmakoglu
starter-dev
asked this question in
Q&A
-
Here's an example of what I mean: 2023-02-17.00-52-28.-.Trim.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Feb 16, 2023
Replies: 1 comment 2 replies
-
There's no built-in mechanism to hide all children of a parent node, no. You can just toggle it yourself with something like this const parentId = parentNode.id // let's assume you have to parent node available
getNodes.value.filter(n => n.parentNode === parentId).forEach(c => (c.hidden = true)) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
starter-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no built-in mechanism to hide all children of a parent node, no.
You can just toggle it yourself with something like this