You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/components/tabular-details.js

18 lines
498 B

import Component from '@ember/component';
import SlotsMixin from 'ember-block-slots';
import closest from 'consul-ui/utils/dom/closest';
import clickFirstAnchorFactory from 'consul-ui/utils/dom/click-first-anchor';
const clickFirstAnchor = clickFirstAnchorFactory(closest);
export default Component.extend(SlotsMixin, {
onchange: function() {},
actions: {
click: function(e) {
clickFirstAnchor(e);
},
change: function(item, e) {
this.onchange(e, item);
},
},
});