Skip to content
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

selection for a tree should return only the selected element #189

Open
ghost opened this issue Feb 18, 2015 · 1 comment
Open

selection for a tree should return only the selected element #189

ghost opened this issue Feb 18, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 18, 2015

I ran into an issue when implementing a tree and when trying to perform an action whenever the selection changes. (selection tree-widget) will always return the complete data passed to the tree model, while I would like to retrieve only the item that was selected.

Browsing the examples, I realised that the two examples 'explorer.clj' and 'tree.clj' both use the selected value and that 'tree.clj' shows the same behaviour that I observed: Whenever an item in the xml tree is clicked, the status label will always show the same xml data of the complete rss file and not only the selected string.

Is there an obvious solution to this or is this an error in the implementation?

@lukaspj
Copy link

lukaspj commented Mar 20, 2018

I don't know if it has changed since 2015, but my experience with the current code-base is that it returns the "path" to the selected element. Meaning, the last element in the selection is the desired element.

I know this is sort of thread-necromancy, just wanted to inform anyone else who might stumble across this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant