Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151183 | Feb 3,2020 07:52 AM UTC | Feb 6,2020 03:52 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Diagram |
<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
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.