Replies: 1 comment
|
Use a tree ref and call await treeRef.current?.expandSubsequently(pathIds);
treeRef.current?.selectItems([targetId]);
treeRef.current?.focusItem(targetId);
The repository also has an exact path-finding example using this sequence, including selecting and focusing the final item afterward. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to implement a Windows-Explorer-like UI.
All tree data are served by API backend. (using asyncDataLoaderFeature)
If a user enteres a full path in the Address bar, I can resolve it into the corresponding IDs for each folder.
Given the list of folder IDs representing the hierarchy, how can I expand the tree accordingly?
All reactions