Back to Devexpress

Event<TSource, TEventArgs> Class

aspnetcore-js-devexpress-dot-richedit-dot-event-2.md

latest1.8 KB
Original Source

Event<TSource, TEventArgs> Class

The event object used for client-side events.

Declaration

ts
export class Event<TSource, TEventArgs extends EventArgs>

Type Parameters

NameDescription
TSource

The type of an event source.

| | TEventArgs | EventArgs |

The type of an event argument.

|

Inheritance

Event<TSource, TEventArgs> RichEditEvent<TEventArgs>

Methods

addHandler(handler) Method

Dynamically connects the event with an appropriate event handler function.

Declaration

ts
addHandler(
    handler: (s?: TSource,
    e?: TEventArgs) => void,
    executionContext?: TSource
): void

Parameters

NameTypeDescription
handler(s?: TSource, e?: TEventArgs) => void

The event handler function’s content.

| | executionContext | TSource |

The source.

|

clearHandlers Method

Dynamically disconnects the event from all the associated event handler functions.

Declaration

ts
clearHandlers(): void

isEmpty Method

Gets whether the event handler is empty.

Declaration

ts
isEmpty(): boolean

Returns

TypeDescription
boolean

true , if the event handler content is empty; otherwise, false

|

removeHandler(handler) Method

Dynamically disconnects the event from the associated event handler function.

Declaration

ts
removeHandler(
    handler: (s?: TSource,
    e?: TEventArgs) => void,
    executionContext?: TSource
): void

Parameters

NameTypeDescription
handler(s?: TSource, e?: TEventArgs) => void

The event handler function’s content.

| | executionContext | TSource |

The source.

|