salix/modules/item/front/descriptor-popover/index.js

24 lines
516 B
JavaScript
Raw Normal View History

import ngModule from '../module';
2020-04-25 09:50:04 +00:00
import DescriptorPopover from 'salix/components/descriptor-popover';
2020-05-08 17:56:39 +00:00
class Controller extends DescriptorPopover {
show(parent, id, lineFk) {
super.show(parent, id);
this.lineFk = lineFk;
}
hide() {
super.hide();
this.lineFk = null;
}
}
2020-04-25 09:50:04 +00:00
ngModule.vnComponent('vnItemDescriptorPopover', {
slotTemplate: require('./index.html'),
controller: Controller,
bindings: {
warehouseFk: '<?',
2020-05-08 17:56:39 +00:00
lineFk: '<?'
}
});