CustomEvent
Module: JavaScript DOM API
#include <CustomEvent.idl>
Inherits from Event
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| CustomEvent | CustomEvent(DOMInternedString type, optional CustomEventInit eventInitDict) |
| void | initCustomEvent(DOMInternedString type, optional boolean bubbles, optional boolean cancelable, optional AnyValue detail) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| readonly attribute AnyValue | detail |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from Event
| Name | |
|---|---|
| Event | Event(DOMInternedString type, optional EventInit initEvent) |
| void | stopPropagation() |
| void | preventDefault() |
| void | initEvent(optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg) |
| void | stopImmediatePropagation() |
Public Attributes inherited from Event
| Name | |
|---|---|
| const unsigned short | NONE |
| const unsigned short | CAPTURING_PHASE |
| const unsigned short | AT_TARGET |
| const unsigned short | BUBBLING_PHASE |
| readonly attribute DOMString | type |
| readonly attribute EventTarget | target |
| readonly attribute EventTarget | currentTarget |
| readonly attribute unsigned short | eventPhase |
| readonly attribute boolean | bubbles |
| readonly attribute boolean | cancelable |
| readonly attribute boolean | defaultPrevented |
| readonly attribute boolean | composed |
Public Functions Documentation
Section titled “Public Functions Documentation”function CustomEvent
Section titled “function CustomEvent”CustomEvent CustomEvent( DOMInternedString type, optional CustomEventInit eventInitDict)function initCustomEvent
Section titled “function initCustomEvent”void initCustomEvent( DOMInternedString type, optional boolean bubbles, optional boolean cancelable, optional AnyValue detail)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable detail
Section titled “variable detail”readonly attribute AnyValue detail;© 2026 Coherent Labs. All rights reserved.