1.0.3 • Published 5 years ago

vue2-hover-intent v1.0.3

Weekly downloads
79
License
GPL-3.0
Repository
github
Last release
5 years ago

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