-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cannot select node with child #9
Comments
Hello, Please next time use StackOverflow for questions like this. I'm not sure to understand your question. you want to select a parent node without selecting its children? |
Basically I want to select a directory from a file tree. If it has children, then there is no guaranteed way to select only the directory due to how the selection propagates. |
Ok. Indeed, the selection always "cascades" to the children nodes. But you can attach some data to the nodes, e.g. |
Right, but I want to be able to select a "folder" that contains another "folder." Is there a way to change how the selection "cascades"? |
No, but that's not a problem. Each folder will have the "attribute" |
I want to be able to select just one node that may or may not have children and only return that node.
Two issues:
Is there a way to determine the actual node that was selected when the selected node has children?
The text was updated successfully, but these errors were encountered: