I would like to show a div when hovering over an element in vue.js. But I can\'t seem to get it working.
It looks like there is no event for hover or mouseover in vue.j
It's possible to toggle a class on hover strictly within a component's template, however, it's not a practical solution for obvious reasons. For prototyping on the other hand, I find it useful to not have to define data properties or event handlers within the script.
Here's an example of how you can experiment with icon colors using Vuetify.
new Vue({
el: '#app'
})
e.target.classList.toggle('pink--text')" @mouseleave="e => e.target.classList.toggle('pink--text')">delete
e.target.classList.toggle('blue--text')" @mouseleave="e => e.target.classList.toggle('blue--text')">launch
e.target.classList.toggle('green--text')" @mouseleave="e => e.target.classList.toggle('green--text')">check