-
Notifications
You must be signed in to change notification settings - Fork 16
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
Deselect tree #132
Comments
My idea is to deselect all when the user click outside the tree. |
Currently, only can be resolved by a workaround. Let's take this example and let's assume the selected item is the "vscode-tree.test.ts": const tree = document.querySelector('#custom-icons-example');
tree.data[0].subItems[2].selected = false;
tree.requestUpdate(); You have to find the selected element in the tree data somehow. The payload of the |
I found that the Tree component has a private |
that would be great!!
El dom., 11 feb. 2024 14:48, Adam Bender ***@***.***>
escribió:
… I found that the Tree component has a private _getItemByPath method. I
can expose that and/or add a deselectAll public method.
—
Reply to this email directly, view it on GitHub
<#132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNN4R24LU2YH46VKCRS2OLYTDDZTAVCNFSM6AAAAABDDCFDZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXG42TSNZWGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
New version has been released. |
thank you very much! |
Is it possible to unselect a tree item?
The text was updated successfully, but these errors were encountered: