aspnetcore-js-devexpress-dot-richedit-dot-event-2.md
The event object used for client-side events.
export class Event<TSource, TEventArgs extends EventArgs>
| Name | Description |
|---|---|
| TSource |
The type of an event source.
| | TEventArgs | EventArgs |
The type of an event argument.
|
Event<TSource, TEventArgs> RichEditEvent<TEventArgs>
Dynamically connects the event with an appropriate event handler function.
addHandler(
handler: (s?: TSource,
e?: TEventArgs) => void,
executionContext?: TSource
): void
| Name | Type | Description |
|---|---|---|
| handler | (s?: TSource, e?: TEventArgs) => void |
The event handler function’s content.
| | executionContext | TSource |
The source.
|
Dynamically disconnects the event from all the associated event handler functions.
clearHandlers(): void
Gets whether the event handler is empty.
isEmpty(): boolean
| Type | Description |
|---|---|
| boolean |
true , if the event handler content is empty; otherwise, false
|
Dynamically disconnects the event from the associated event handler function.
removeHandler(
handler: (s?: TSource,
e?: TEventArgs) => void,
executionContext?: TSource
): void
| Name | Type | Description |
|---|---|---|
| handler | (s?: TSource, e?: TEventArgs) => void |
The event handler function’s content.
| | executionContext | TSource |
The source.
|