CustomEvent Interface
CustomEvent
are events initialized by an application for any purpose. It's represented by the nsIDOMCustomEvent
interface, which extends the nsIDOMEvent
interface.
Extends
Methods
Code void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) #
Initializes the event in a manner analogous to the similarly-named method in the DOM Events interfaces.
Parameters
type
- The name of the event.
canBubble
- A boolean indicating whether the event bubbles up through the DOM or not.
cancelable
- A boolean indicating whether the event is cancelable.
detail
- The data passed when initializing the event.
void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg);
Fields
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.