Binding Delay

Hi,

Is there a way to make the [(value)] binding happen immediately when typing?

For example on the two examples listed here, when you start type and you don't exit the control, it takes 10 seconds for the submit button to appear.  Any way to get the submit button to appear as soon as someone starts typing?

https://ej2.syncfusion.com/angular/documentation/rich-text-editor/validation/

Thanks,

Chris


3 Replies

RK Revanth Krishnan Syncfusion Team November 12, 2021 01:16 PM UTC

Hi Chris, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “Is there a way to make the [(value)] binding happen immediately when typing?” 
 
By default, in the Rich Text Editor, the value will be bound after 10 seconds delay, this can be modified by using the `saveInterval` property. We have prepared a sample for your reference, 
 
Code Snippet: 
<ejs-richtexteditor #templateRTE id="name" #name="ngModel" [(value)]="value" required name="name" 
    [saveInterval]="saveInterval" [(ngModel)]="value" (created)="rteCreated()"></ejs-richtexteditor> 
 
export class AppComponent { 
    public value: any = null; 
    @ViewChild('templateRTE') rteEle: RichTextEditorComponent; 
    public saveInterval: number = 100; 
    . . . 
} 
 
 
Note: The default value of `saveInterval` is 1000 milliseconds (10 seconds). 
 
 
Regards, 
Revanth 



CP Chris Persichetti replied to Revanth Krishnan November 15, 2021 02:50 AM UTC

Great thanks!



IS Indrajith Srinivasan Syncfusion Team November 15, 2021 04:29 AM UTC

Hi Chris,

Welcome,

Please get back to us if you need any further assistance.

Regards,
Indrajith


Loader.
Up arrow icon