-
Hi Is there a way to trigger mv-action when hovering an element ? or maybe is there a way to execute a JavaScript, that would call mv-action, when moving the mouse pointer onto an element? something like: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would suggest using |
Beta Was this translation helpful? Give feedback.
-
It seems unfortunate to have Mavo lose the information about which event occurred. Consider e.g. if you want to handle two different events---you would have to use more complex methods (such as wrapping in an extra tag) to be able to tell mavo which event is being handled. What if we introduced a general syntax of attributes like |
Beta Was this translation helpful? Give feedback.
<div onmouseover="this.click()">hover me<div>
I would suggest using
onmouseenter
though.