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

CollapseAll #64

Open
junzai97 opened this issue Mar 30, 2020 · 3 comments
Open

CollapseAll #64

junzai97 opened this issue Mar 30, 2020 · 3 comments

Comments

@junzai97
Copy link

How can I set the tree to be rendered with all the nodes are collapse?

@RoshanAtDure
Copy link

Even I'm looking for same. Please let me know if you have found anything.

Thanks

@guog
Copy link

guog commented Jun 1, 2020

template

<tree
  :data="data"
  ref="tree"
>
</tree>

js

this.$refs.tree.collapseAll(this.$refs.tree.internaldata.root)

@ghost
Copy link

ghost commented May 29, 2021

@guog 's solution works. Thanks!

For the longest time, i was passing the json into the function instead of this.$refs.tree.internaldata.root

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

3 participants