nx.js
Classes

CustomEvent

Extends

Type Parameters

Type ParameterDefault type
Tany

Implements

Constructors

new CustomEvent()

new CustomEvent<T>(type, options): CustomEvent<T>

Parameters

ParameterType
typestring
optionsCustomEventInit<T>

Returns

CustomEvent<T>

Overrides

Event.constructor

Properties

PropertyModifierTypeInherited from
AT_TARGETreadonly2globalThis.CustomEvent.AT_TARGET Event.AT_TARGET
BUBBLING_PHASEreadonly3globalThis.CustomEvent.BUBBLING_PHASE Event.BUBBLING_PHASE
CAPTURING_PHASEreadonly1globalThis.CustomEvent.CAPTURING_PHASE Event.CAPTURING_PHASE
NONEreadonly0globalThis.CustomEvent.NONE Event.NONE
bubblesreadonlybooleanglobalThis.CustomEvent.bubbles Event.bubbles
cancelBubblepublicbooleanglobalThis.CustomEvent.cancelBubble Event.cancelBubble
cancelablereadonlybooleanglobalThis.CustomEvent.cancelable Event.cancelable
composedreadonlybooleanglobalThis.CustomEvent.composed Event.composed
currentTargetreadonlynull | EventTargetglobalThis.CustomEvent.currentTarget Event.currentTarget
defaultPreventedreadonlybooleanglobalThis.CustomEvent.defaultPrevented Event.defaultPrevented
detailreadonlynull | T-
eventPhasereadonlynumberglobalThis.CustomEvent.eventPhase Event.eventPhase
isTrustedreadonlybooleanglobalThis.CustomEvent.isTrusted Event.isTrusted
returnValuepublicbooleanglobalThis.CustomEvent.returnValue Event.returnValue
srcElementreadonlynull | EventTargetglobalThis.CustomEvent.srcElement Event.srcElement
targetreadonlynull | EventTargetglobalThis.CustomEvent.target Event.target
timeStampreadonlynumberglobalThis.CustomEvent.timeStamp Event.timeStamp
typereadonlystringglobalThis.CustomEvent.type Event.type
AT_TARGETreadonly2Event.AT_TARGET
BUBBLING_PHASEreadonly3Event.BUBBLING_PHASE
CAPTURING_PHASEreadonly1Event.CAPTURING_PHASE
NONEreadonly0Event.NONE

Methods

composedPath()

composedPath(): EventTarget[]

Returns

EventTarget[]

Implementation of

globalThis.CustomEvent.composedPath

Inherited from

Event.composedPath


initCustomEvent()

initCustomEvent(): void

Returns

void

Implementation of

globalThis.CustomEvent.initCustomEvent


initEvent()

initEvent(type, bubbles?, cancelable?): void

Parameters

ParameterType
typestring
bubbles?boolean
cancelable?boolean

Returns

void

Implementation of

globalThis.CustomEvent.initEvent

Inherited from

Event.initEvent


preventDefault()

preventDefault(): void

Returns

void

Implementation of

globalThis.CustomEvent.preventDefault

Inherited from

Event.preventDefault


stopImmediatePropagation()

stopImmediatePropagation(): void

Returns

void

Implementation of

globalThis.CustomEvent.stopImmediatePropagation

Inherited from

Event.stopImmediatePropagation


stopPropagation()

stopPropagation(): void

Returns

void

Implementation of

globalThis.CustomEvent.stopPropagation

Inherited from

Event.stopPropagation

On this page