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

feat: pass event on node-click #347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joelcoxokc
Copy link

I have my own extension for this, but it is going to be much easier and more maintainable if this code resides in the primary repo.
Can you please allow this code to be added, This should not be considered a breaking change.

@joelcoxokc
Copy link
Author

joelcoxokc commented Jan 12, 2024

I basically have multiple buttons on the node... And adding click events to each button does not work properly.
Also with the amount of data I am displaying, having 5 click events per node is a little too much on the browser.
So I need access to the event object to detect which target element was clicked.

I also need access to the position of the click event to display some popovers

@bumbeishvili
Copy link
Owner

Makes sense, I'll merge and update the version on the first chance

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

Successfully merging this pull request may close these issues.

2 participants