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

When the child node is expanded, It's not expanded from the top parent node. #122

Open
FactAttacker opened this issue May 9, 2019 · 4 comments

Comments

@FactAttacker
Copy link

The first time you create data into a tree structure,
by the Depth4 {node.state = expanded: true}

[Depth1]
node.state = expanded: false

ex) Current
this.$refs.tree.find({text:depth4 ,state: {expanded: true} });

text: depth1~3 ... <- state: {expanded: false}

i want
this.$refs.tree.find({text:depth4 ,state: {expanded: true} });

text: depth1~3 ... <- state: {expanded: true}

I want to do this. How do I do this?

Always Thank you.

@amsik
Copy link
Owner

amsik commented May 13, 2019

Sorry, but I didn't get you. Can you show me a real example?

@FactAttacker
Copy link
Author

FactAttacker commented May 16, 2019

yes! but I've solved it in a different way.

ex) Tree Structure

▼ 1
....▼ 1-1
........▼1-1-1
............▶1-1-1-1
........▶1-1-2
.....▼ 1-2
........▼1-2-1
......▶ 1-3

[Current Tree]
▼ 1
....▶ 1-1
....▶ 1-2
....▶ 1-3

[What I did]
let dethp4 = this.$refs.tree.find({text: '1-1-1-1'});
dethp4.state.expanded = true;

[i want]
▼ 1
....▼ 1-1
.......▼1-1-1
..........▶1-1-1-1
.......▶1-1-2
....▶ 1-2
....▶ 1-3

:D

@amsik
Copy link
Owner

amsik commented May 16, 2019

Cool :)

@ngoclieu1996vn
Copy link

Me too

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