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

Adding click event handler #24

Open
cogitaria-admin opened this issue Mar 26, 2023 · 1 comment
Open

Adding click event handler #24

cogitaria-admin opened this issue Mar 26, 2023 · 1 comment

Comments

@cogitaria-admin
Copy link

cogitaria-admin commented Mar 26, 2023

The show method has a click parameter that accepts a dictionary with some style information:

show(click = {'size': 1.25, 'stroke-width': 3}, ...

This is useful but it's missing the opportunity for interaction. Adding a callback could be used to take some custom action (in addition to styling the node) such as populating a separate HTML element with node details based on the node ID.

@erdogant
Copy link
Owner

Interesting suggestion. What would be an appropriate manner for interaction and callback?

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

2 participants