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

tree List UI change select function #124

Open
FactAttacker opened this issue May 16, 2019 · 1 comment
Open

tree List UI change select function #124

FactAttacker opened this issue May 16, 2019 · 1 comment

Comments

@FactAttacker
Copy link

FactAttacker commented May 16, 2019

hello!
this is good lib!!

ex)
[Tree Structure]
▼ 1
....▼1-1
.......▶1-1-1 <- selected
....▶1-2
....▶1-3

[i want]

this.$refs.tree.find({text: 'aaa' }).select();
or
this.$refs.tree.find({text: 'aaa' }).select(true);

// let children= this.$refs.tree.selected();
// let parent = this.$refs.tree.find({text:children.parent.text});
// parent.select();

[i want ui]
▼ 1
....▼1-1 <- selected
.......▶1-1-1
....▶1-2
....▶1-3

but I didn't solve it.

:D

@FactAttacker
Copy link
Author

oh... pardon me
Oh, I got it.

[Solution]
this.$nextTick( () => {
this.$refs.tree.find({text: 'aaa' }).select();
})

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