vue-tippy
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "vue-tippy", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -35,4 +35,4 @@ "main": "vue-tippy.js", | ||
"dependencies": { | ||
"tippy.js": "^0.11.1" | ||
"tippy.js": "^0.17.0" | ||
} | ||
} |
# vue-tippy | ||
> Directive wrapper for Tippy.js 0.11 | ||
> Directive wrapper for Tippy.js | ||
@@ -5,0 +5,0 @@ ## Install |
@@ -8,3 +8,3 @@ const Tippy = require('tippy.js'); | ||
bind: function (el, binding, vnode) { | ||
new Tippy(el, { | ||
const instance = new Tippy(el, { | ||
shown: function () { | ||
@@ -17,2 +17,15 @@ const handlers = (vnode.data && vnode.data.on) || | ||
} | ||
}, | ||
wait: function(show, event) { | ||
// Change your app model to be rendered by the UI library/framework | ||
// Queue show to run once rendering is complete | ||
setTimeout(function() { | ||
// update(popper) content | ||
const popper = instance.getPopperElement(el); | ||
instance.update(popper); | ||
show() | ||
}, 0) | ||
} | ||
@@ -19,0 +32,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3687
35
+ Addedtippy.js@0.17.0(transitive)
- Removedtippy.js@0.11.3(transitive)
Updatedtippy.js@^0.17.0