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

example #2

Open
marcdakar opened this issue May 19, 2018 · 4 comments
Open

example #2

marcdakar opened this issue May 19, 2018 · 4 comments

Comments

@marcdakar
Copy link

marcdakar commented May 19, 2018

hello, i am very interested in your component, its looks really promising
but i have some questions

  • how to avoid self closing after click in last level
  • stop at specific level, perhaps if :title ['A', 'B', 'C'] - dont go further, also when C has childs
  • can we jump to a specific level
  • can we get the filtering over all levels
  • there are some fixed chinese placeholder, messages

thank you very much
marc

@zanseven007
Copy link
Owner

@marcdakar
Thanks for your advice,
I cant understand the purpose of the fourth proposal.
Other suggestions I will add or fix in the next version as soon as possible.
If you wish, you can also pull request to finish it

@marcdakar
Copy link
Author

marcdakar commented May 21, 2018

hi, thank you
2.
i solved second issue very simple with
if (item.children && this.title.length > this.level) { //stops when level == title.length
but perhaps a { max level } prop is more convinient
4.
i like the search/filtering very much, it would be great if you can search over all items.label, i know this breaks the concept and i think user can implement this for its own, if its possible to jump to a specific level in the tree: ( for example [3,2,4] third node of leve 1, second node of level 2, fourth node of level 3)

ps: whats the best way to reload component, if tree data is changed, it seems to breaking the structure

have a nice day marc

@zanseven007
Copy link
Owner

For its possible to jump to a specific level in the tree ,its a awesome feature.

But search over all items is breaks the current structure,

And i dont know why data is changed, I think it should be a fixed value unless you set the remote and remote-method props

@marcdakar
Copy link
Author

hi, you mistunderstood
when i reload the data (because i added an item) i have to reset the level to 1
greetings marc

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

2 participants