vue2-hover-intent
v1.0.3
Published
Hover intent
Downloads
94
Maintainers
Readme
Hover intent directive for VueJs V2
Usage: npm install vue2-hover-intent --save-dev
app.js:
import HoverIntent from 'vue2-hover-intent';
Vue.directive('hover-intent', HoverIntent);
component.vue:
- <a v-hover-intent="functionToCall.bind(null, arg1)"> // defaults to 200 milliseconds
- <a v-hover-intent:500="functionToCall.bind(null, arg1)">
- <a v-hover-intent="functionToCall"> // no arguments needed for the function