SelectionChangedEvent Class

An event that occurs when selection is changed in the document.


export class SelectionChangedEvent extends RichEditEvent<EventArgs>


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

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

 .OnSelectionChanged("function(s,e) {console.log('The current position is ' +;}")
 // ...

The event handler receives an argument of the EventArgs type.


See Also