CustomEvent

class CustomEvent<T = any> extends Event {
constructor(typeArg: string, eventInitDict?: CustomEventInit<T>);
readonly detail: T;
}

§Type Parameters

§
T = any
[src]

§Extends

§
Event
[src]

§Constructors

§
new CustomEvent(typeArg: string, eventInitDict?: CustomEventInit<T>)
[src]

§Properties

§
detail: T
[src]

Returns any custom data event was created with. Typically used for synthetic events.