summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/droplab/hook.js
blob: cf78165b0d81da222077e319185f963175524e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import DropDown from './drop_down';

class Hook {
  constructor(trigger, list, plugins, config) {
    this.trigger = trigger;
    this.list = new DropDown(list);
    this.type = 'Hook';
    this.event = 'click';
    this.plugins = plugins || [];
    this.config = config || {};
    this.id = trigger.id;
  }
}

export default Hook;