Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

How to handle right click events over folders and nodes (files)? #240

Open
rubencg195 opened this issue Dec 17, 2019 · 4 comments
Open

How to handle right click events over folders and nodes (files)? #240

rubencg195 opened this issue Dec 17, 2019 · 4 comments

Comments

@rubencg195
Copy link

I want to display custom dropdown menus when a right-click event is detected over a node or folder. The toggle event apparently is only triggered by the left click. How can I get the node information when it has been right-clicked?

@Tomassito
Copy link

Well, I guess you could provide you own decorator e.g. Container and put whatever handler you want in it...

@rubencg195
Copy link
Author

rubencg195 commented Jan 8, 2020

Thanks @Tomassito. What I still do not know is how to detect the right click event? You provide a trigger event called onToggle for left click events but not for right click events.

@Tomassito
Copy link

If this is the problem then I suggest you to consult the Web API
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent

@kayesn786
Copy link

@rubencg195 , did you implement right click event? if yes, can you share the code snippet?

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

No branches or pull requests

3 participants