We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i am trying to use tree API to find root nodes. BUT i didn't get correct results
EXAMPLE DATA
[ { text: 'Item 1' }, { text: 'Item 2', state: { expanded: true }, children: [ { text: 'Item 2.1' }, { text: 'Item 2.2' }, { text: 'Item 2.3' } ]}, { text: 'Item 3', state: { selected: true } }, { text: 'Item 4' } ]
https://jsfiddle.net/longman/dqf1wLsp/4/
WHAT i USE this.$refs.tree.find({depth: 0}) OR this.$refs.tree.find({parent: null})
WHAT i GET i get ALL nodes (7 nodes)
WHAT i EXPECT return top level of nodes (4 nodes)
QUESTIONS: it works when i use find using criteria with text prop. BUT WHY i am unable to find nodes using criteria wit depth/parent props??
text
depth/parent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i am trying to use tree API to find root nodes.
BUT i didn't get correct results
EXAMPLE DATA
https://jsfiddle.net/longman/dqf1wLsp/4/
WHAT i USE
this.$refs.tree.find({depth: 0})
OR
this.$refs.tree.find({parent: null})
WHAT i GET
i get ALL nodes (7 nodes)
WHAT i EXPECT
return top level of nodes (4 nodes)
QUESTIONS:
it works when i use find using criteria with
text
prop.BUT WHY i am unable to find nodes using criteria wit
depth/parent
props??The text was updated successfully, but these errors were encountered: