BoldDesk®Help desk software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
<ejs-diagram #diagram id="diagram" width="100%" height="700px (textEdit)="textEdit($event)" >
</ejs-diagram>
textEdit(args:ITextEditEventArgs) {
//get a new text and old text
console.log(args.newValue);
console.log(args.oldValue);
}
|
Hi Rakhi,There is no textChange event in the diagram control. Please use textEdit event which triggers once you edit the text and focus out of the text area. In this event, we get a new and the old text in the newValue and oldValue property respectively. Please refer to a help documentation, code example and the sample below.Help documentation: https://ej2.syncfusion.com/documentation/api/diagram/#textedit
Code example:
<ejs-diagram #diagram id="diagram" width="100%" height="700px (textEdit)="textEdit($event)" ></ejs-diagram>
textEdit(args:ITextEditEventArgs) {//get a new text and old textconsole.log(args.newValue);console.log(args.oldValue);}
Regards,Shyam G