32 lines
726 B
JavaScript
32 lines
726 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include: {
|
|
relation: 'item',
|
|
scope: {
|
|
field: ['name', 'image']
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
showDescriptor(event, itemFk) {
|
|
this.$.descriptor.itemFk = itemFk;
|
|
this.$.descriptor.parent = event.target;
|
|
this.$.descriptor.show();
|
|
}
|
|
|
|
onDescriptorLoad() {
|
|
this.$.popover.relocate();
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnTicketPicture', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|