Skip to main content

AutoCorrectEvent Class

An event that occurs when text is typed in the control.


export class AutoCorrectEvent extends RichEditEvent<AutoCorrectEventArgs>


You can define the AutoCorrect event handler either at the server side, at the client side, or at runtime.

Use the OnAutoCorrect(String) method to specify the event handler.

 .OnAutoCorrect("function(s,e) {console.log('The inserted text is: ' + e.text);}")
 // ...

The event handler receives an argument of the AutoCorrectEventArgs type. The argument’s properties provide information specific to this event.