2018-10-19 15:17:02 +00:00
|
|
|
import Component from '@ember/component';
|
2019-01-30 10:56:04 +00:00
|
|
|
import SlotsMixin from 'block-slots';
|
2018-11-19 14:47:20 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import { get } from '@ember/object';
|
2018-10-19 15:17:02 +00:00
|
|
|
|
|
|
|
export default Component.extend(SlotsMixin, {
|
2018-11-19 14:47:20 +00:00
|
|
|
dom: service('dom'),
|
2018-10-19 15:17:02 +00:00
|
|
|
onchange: function() {},
|
|
|
|
actions: {
|
|
|
|
click: function(e) {
|
2018-11-19 14:47:20 +00:00
|
|
|
get(this, 'dom').clickFirstAnchor(e);
|
2018-10-19 15:17:02 +00:00
|
|
|
},
|
|
|
|
change: function(item, e) {
|
|
|
|
this.onchange(e, item);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|