salix/modules/order/front/catalog-view/index.js

24 lines
497 B
JavaScript

import ngModule from '../module';
import Component from 'core/lib/component';
import './style.scss';
class Controller extends Component {
preview(event, item) {
event.preventDefault();
this.$.pricesPopover.show(event, item);
}
onDescriptorLoad() {
this.$.popover.relocate();
}
}
ngModule.component('vnOrderCatalogView', {
template: require('./index.html'),
controller: Controller,
bindings: {
order: '<',
model: '<'
}
});