vue-tippy
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "vue-tippy", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "vue-tippy.js", |
const Tippy = require('tippy.js'); | ||
const css = require('tippy.js/dist/tippy.css'); | ||
Vue.prototype.$tippy = { | ||
update: function (el) { | ||
var instance = Tippy(el); | ||
instance.update(instance.getPopperElement(instance.selector)) | ||
} | ||
}; | ||
var VueTippy = { | ||
@@ -8,3 +15,3 @@ install: function (Vue) { | ||
bind: function (el, binding, vnode) { | ||
const instance = new Tippy(el, { | ||
const instance = new Tippy(el, { | ||
shown: function () { | ||
@@ -18,8 +25,9 @@ const handlers = (vnode.data && vnode.data.on) || | ||
}, | ||
wait: function(show, event) { | ||
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() { | ||
setTimeout(function () { | ||
// update(popper) content | ||
const popper = instance.getPopperElement(el); | ||
@@ -26,0 +34,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
3858
41