You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I meant to provide a prop where a user can put a string and TreeComponent will automatically filter data(nested as well)
const treeDataWithALotOfNestedChildren = [....];
const searchText = 'name of some element from the tree data'; //some string that a user provided to find needed the tree elements
<Tree
tree={treeDataWithALotOfNestedChildren}
...requiredProps
searchQuery={searchText}
/>
result:
New filtered tree with the preservation of the structure(e.g. if a deeply nested child has a lot of parents that don't meet searchText they also should be rendered).
Is your feature request related to a problem? Please describe.
Sometimes it is hard to implement a search with nested folders
Describe the solution you'd like
It would be cool to implement a search option from the box
The text was updated successfully, but these errors were encountered: