Class RCKitEvent<T, D, R>
Type Parameters
T extends string
D = void
R = void
Properties
Readonly data
data: D
Constructors
constructor
- new RCKitEvent<T, D, R>(type: T, data?: D): RCKitEvent<T, D, R>
Type Parameters
T extends string
D = void
R = void
Parameters
Methods
isImmediatePropagationStopped
- isImmediatePropagationStopped(): boolean
Returns boolean
stopImmediatePropagation
- stopImmediatePropagation(): void
Returns void
isDefaultPrevented
- isDefaultPrevented(): boolean
Returns boolean
preventDefault
Returns void
sendResult
- sendResult(data: R): void
Parameters
Returns void
awaitResult
- awaitResult(): Promise<R>
Returns Promise<R>
clone
Parameters
事件基类 Event<T, D = void, R = void>