<ejs-gantt [editDialogFields]="editDialogFields"></ejs-gantt> |
this.editDialogFields = [
{ type: 'General', headerText: 'General', fields: ['TaskName', 'StartDate', 'EndDate'] },
{ type: 'Custom', field : ['customControl']},
{ type: 'Dependency' }
]; |
{ field: 'customControl',
edit: {
create: () => {
this.elem = document.createElement('input');
return this.elem;
},
read: () => {
return this.uploader;
},
destroy: () => {
this.uploader.destroy();
},
write: (args: Object) => {
this.elem.type = 'file'
this.uploader = new Uploader();
this.uploader.appendTo(this.elem);
}
}
} |