summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/directives/tooltip.js
blob: 4f2412ce5209ac463bdc61dee67309659ea527a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import $ from 'jquery';

export default {
  bind(el) {
    $(el).tooltip({
      trigger: 'hover',
    });
  },

  componentUpdated(el) {
    $(el).tooltip('_fixTitle');
  },

  unbind(el) {
    $(el).tooltip('dispose');
  },
};