-
Notifications
You must be signed in to change notification settings - Fork 6
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
onMouseEnter/-Leave Events #46
Comments
@max-rh I've implemented this feature in a way that you can provide event handlers for every possible event. Please see test/demo.ts for an example on how this feature will work and let me know if you have any remarks. I still need to update the documentation, but you can expect a new release soon 😊 |
@nkappler Tested and absolutely amazing; exactly what I need. And I liked that you made the actual item accessible like the action attribute; I wasn't planning on accessing it with the events; my events manipulate other elements in the website but now I am gonna actually style the hovered over elements. Thanks 👍 |
Glad you like it. During testing, I've noticed that the |
Ah, good to know. Thanks |
Sure, so I have a KonvaJS dashboard; now until i found this context menu library, i used to build my own menus to allow the user to interact with the dashboard; adding elements, modifying or deleting.
now the cool thing about mouseenter events is mainly with delete functionalities; if a user opened a context-menu and hovers over the delete item, i highlight and blink certain elements to show what will get deleted if the selected item is deleted, now once its clicked, a popup shows to confirm the deletion, but that blinking animation prior to deleting is what i had using my manual menus and its what i am trying to achieve here.
I didnt get the chance to go deep in the ctxmenu code, but I would be happy to open a PR if i get the chance to review it.
Thanks :)
Originally posted by @max-rh in #44 (comment)
The text was updated successfully, but these errors were encountered: