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

[Feature request]: clickNodeData callback #186

Open
pgruening opened this issue Jan 6, 2023 · 0 comments
Open

[Feature request]: clickNodeData callback #186

pgruening opened this issue Jan 6, 2023 · 0 comments

Comments

@pgruening
Copy link

It would be helpful to have a custom event called, for example, 'clickNodeData' that always triggers a callback function, regardless of whether the node has been clicked before.

I'm trying to create a simple Treeviewer in Dash. In my app, the root node is shown, and when I click on it, a callback function is triggered to visualize the root node and all of its children nodes. This works well using the 'tapNodeData' or 'selectedNodeData' properties.

However, I would like to be able to click on the root node again to hide the children nodes. Currently, neither 'tapNodeData' nor 'selectedNodeData' triggers the callback function when the root node is clicked a second time. My current workaround is to deselect and then reselect the root node, which causes the 'selectedNodeData' property to trigger the callback function.

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