Skip to content

Hide items and continue using drag and drop #348

Closed Answered by lukasbach
Stephan23 asked this question in Q&A
Discussion options

You must be logged in to vote

Are you using a custom tree data provider? You could implement the getTreeItem method in a way so that it filters the childrens array before returning to only include items that should be rendered. If something in which items should be rendered and which should not, make sure to call the listeners registered by onDidChangeTreeData to notify RCT about which parents now include items whose show/hide behavior has changed, and RCT will update accordingly.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Stephan23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants