vue2-hover-intent

1.0.3 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i vue2-hover-intent

      Weekly Downloads

      42

      Version

      1.0.3

      License

      GPL-3.0

      Unpacked Size

      2.1 kB

      Total Files

      3

      Last publish

      Collaborators

      • giuga