debian-mirror-gitlab/app/assets/javascripts/vue_shared/directives/tooltip.js
2018-11-08 19:23:39 +05:30

17 lines
229 B
JavaScript

import $ from 'jquery';
export default {
bind(el) {
$(el).tooltip({
trigger: 'hover',
});
},
componentUpdated(el) {
$(el).tooltip('_fixTitle');
},
unbind(el) {
$(el).tooltip('dispose');
},
};