Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start with nodes collapsed? #114

Open
Jont828 opened this issue Apr 26, 2022 · 0 comments
Open

How to start with nodes collapsed? #114

Jont828 opened this issue Apr 26, 2022 · 0 comments

Comments

@Jont828
Copy link

Jont828 commented Apr 26, 2022

I would like to pass a field node.collapsed to load a specific node with its children collapsed. This way, for nodes with a ton of children, we can save some screen space. It looks like v-bind:collapsed="node.data._collapsed" and onClickNode() is responsible for setting node.data._collapsed and node.data.children to null. I'm thinking that I could initialize node.data._collapsed and node.data.children for nodes that I want collapsed to begin with. My question is, is there a function where it would make sense to add it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant