Hello,
I'm trying to custom a cell grid in edit dialog mode with richtextbox but I have "ERROR The renderer Content is not found" when i'm edit row.
myComponent.ts:
this.contentParams = {
create: () => {
this.elem = document.createElement('input');
return this.elem;
},
read: () => {
return this.richTextBoxObj.value;
},
destroy: () => {
this.richTextBoxObj.destroy();
},
write: (args: { rowData: any, column: Column }) => {
this.richTextBoxObj = new RichTextEditor({
value: args.rowData[args.column.field],
inlineMode: this.inlineMode,
toolbarSettings: this.toolbarSettings,
format: this.format,
fontFamily: this.fontFamily
});
this.richTextBoxObj.appendTo(this.elem);
}
};
in html Template :
<e-column field='Contenu' headerText='Contenu' [edit]='contentParams' width='120'></e-column>