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

27 lines
599 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 {
2020-05-26 08:37:52 +00:00
show(parent, id, lineFk, dated) {
2020-05-08 17:56:39 +00:00
super.show(parent, id);
this.lineFk = lineFk;
2020-05-26 08:37:52 +00:00
this.dated = dated;
2020-05-08 17:56:39 +00:00
}
hide() {
super.hide();
this.lineFk = null;
2020-05-26 08:37:52 +00:00
this.dated = null;
2020-05-08 17:56:39 +00:00
}
}
2020-04-25 09:50:04 +00:00
ngModule.vnComponent('vnItemDescriptorPopover', {
slotTemplate: require('./index.html'),
controller: Controller,
bindings: {
warehouseFk: '<?',
2020-05-26 08:37:52 +00:00
lineFk: '<?',
dated: '<?'
}
});