javascript - Is it possible to get the DOM element of a vuejs element? -


vue.js supplies variable $el return whole template dom element. possible "sub-element", in other words, dom element inside whole template element?

for example, want show floating window position depends on current "mouse-over" element.

<div v-for="..." v-on:mouseover="showfloating(current_element)"> 

is possible dom element "current_element"?

try this

<div v-for="..." v-on:mouseover="showfloating">

methods:{     showfloating(event){         console.log(event);     } } 

this give current element attributes`


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -