25 lines
498 B
JavaScript
25 lines
498 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: '<'
|
|
}
|
|
});
|