-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[TreeView] Scroll to programmatically selected tree item #10113
Comments
I have added an illustration. |
@bharatkashyap we discussed this issue this morning Right now, I guess that you are controlling the selected items using the |
Yes, this would serve the purpose |
Hey! Is the solution proposed by @flaviendelangle going to fix it? Thanks |
It should yes |
You can set and use document.getElementById(yourIdHere).scrollIntoView() |
@bharatkashyap: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Summary 💡
When selection is brought to a tree item programmatically, that page should scroll to that item in the tree view component.
Examples 🌈
Screen.Recording.2023-09-16.at.16.53.32.mov
Motivation 🔦
The TreeView component acts as a page hierarchy explorer for Toolpad with content often overflowing beyond its container. With this feature, the tree view component would scroll to the item currently selected in the page (and the tree itself as well)
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: