CustomEvent

interface

interface CustomEvent<T = any> extends Event

variable

var CustomEvent: { … }

The constructor object for CustomEvent, used to construct an event that can carry arbitrary application-defined data via its detail property.

Constructors

constructor

new CustomEvent<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>

Properties

detail

readonly detail: T

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

prototype

readonly prototype: CustomEvent