CustomEvent
interface
interface CustomEvent<T = any> extends Eventvariable
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: TReturns any custom data event was created with. Typically used for synthetic events.
prototype
readonly prototype: CustomEvent