debian-mirror-gitlab/app/assets/javascripts/droplab/hook.js

16 lines
340 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
import DropDown from './drop_down';
2017-09-10 17:25:29 +05:30
class Hook {
constructor(trigger, list, plugins, config) {
this.trigger = trigger;
2018-03-17 18:26:18 +05:30
this.list = new DropDown(list, config);
2017-09-10 17:25:29 +05:30
this.type = 'Hook';
this.event = 'click';
this.plugins = plugins || [];
this.config = config || {};
this.id = trigger.id;
}
}
2017-08-17 22:00:37 +05:30
export default Hook;