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

export default {
  bind(el) {
    $(el).tooltip();
  },

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

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