Articles in this section
Category / Section

How to Render Complex Tree with Collapsed Child Nodes in Vue Diagram?

2 mins read

In our Syncfusion® Vue Diagram, layout nodes can be both expanded and collapsed. By default, child nodes are expanded. If you want to display a complex hierarchical tree with child nodes collapsed, set the parent node’s isExpanded property to false.

App.vue

getNodeDefaults: (node) => {
// Setting isExpanded to false
               if (node.data.Name === 'node12' ||
                   node.data.Name === 'node27') {
                       node.isExpanded = false;
               }
               return node;
} 

Refer to the sample below for your reference:

Sample: Click here

Conclusion

I hope you enjoyed learning about how to render a complex tree with collapsed child nodes in Vue Diagram.

You can refer to our Vue Diagram feature tour page to learn about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications.

You can also explore our Vue Diagram Example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied