Classes
CustomEvent
Extends
Type Parameters
Type Parameter | Default type |
---|---|
T | any |
Implements
Constructors
new CustomEvent()
new CustomEvent<T
>(type
, options
): CustomEvent
<T
>
Parameters
Parameter | Type |
---|---|
type | string |
options | CustomEventInit <T > |
Returns
CustomEvent
<T
>
Overrides
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
AT_TARGET | readonly | 2 | globalThis.CustomEvent.AT_TARGET Event .AT_TARGET |
BUBBLING_PHASE | readonly | 3 | globalThis.CustomEvent.BUBBLING_PHASE Event .BUBBLING_PHASE |
CAPTURING_PHASE | readonly | 1 | globalThis.CustomEvent.CAPTURING_PHASE Event .CAPTURING_PHASE |
NONE | readonly | 0 | globalThis.CustomEvent.NONE Event .NONE |
bubbles | readonly | boolean | globalThis.CustomEvent.bubbles Event .bubbles |
cancelBubble | public | boolean | globalThis.CustomEvent.cancelBubble Event .cancelBubble |
cancelable | readonly | boolean | globalThis.CustomEvent.cancelable Event .cancelable |
composed | readonly | boolean | globalThis.CustomEvent.composed Event .composed |
currentTarget | readonly | null | EventTarget | globalThis.CustomEvent.currentTarget Event .currentTarget |
defaultPrevented | readonly | boolean | globalThis.CustomEvent.defaultPrevented Event .defaultPrevented |
detail | readonly | null | T | - |
eventPhase | readonly | number | globalThis.CustomEvent.eventPhase Event .eventPhase |
isTrusted | readonly | boolean | globalThis.CustomEvent.isTrusted Event .isTrusted |
returnValue | public | boolean | globalThis.CustomEvent.returnValue Event .returnValue |
srcElement | readonly | null | EventTarget | globalThis.CustomEvent.srcElement Event .srcElement |
target | readonly | null | EventTarget | globalThis.CustomEvent.target Event .target |
timeStamp | readonly | number | globalThis.CustomEvent.timeStamp Event .timeStamp |
type | readonly | string | globalThis.CustomEvent.type Event .type |
AT_TARGET | readonly | 2 | Event .AT_TARGET |
BUBBLING_PHASE | readonly | 3 | Event .BUBBLING_PHASE |
CAPTURING_PHASE | readonly | 1 | Event .CAPTURING_PHASE |
NONE | readonly | 0 | Event .NONE |
Methods
composedPath()
composedPath(): EventTarget
[]
Returns
Implementation of
globalThis.CustomEvent.composedPath
Inherited from
initCustomEvent()
initCustomEvent(): void
Returns
void
Implementation of
globalThis.CustomEvent.initCustomEvent
initEvent()
initEvent(type
, bubbles
?, cancelable
?): void
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Implementation of
globalThis.CustomEvent.initEvent
Inherited from
preventDefault()
preventDefault(): void
Returns
void
Implementation of
globalThis.CustomEvent.preventDefault
Inherited from
stopImmediatePropagation()
stopImmediatePropagation(): void
Returns
void
Implementation of
globalThis.CustomEvent.stopImmediatePropagation
Inherited from
Event
.stopImmediatePropagation
stopPropagation()
stopPropagation(): void
Returns
void
Implementation of
globalThis.CustomEvent.stopPropagation