An event which holds any kind of data. It uses one generic type:
T: The type of the data
| Name | Type | Description |
|---|---|---|
type |
string |
Event Type. |
data |
T |
Data that should be stored on the event object. |
opt_target |
Object |
optional
A reference to the object that is the target of
the given event. It must implement the |
Extends
Members
-
AT_TARGET number constant inherited
-
This property indicates that the event is being evaluated at the target.
-
BUBBLING_PHASE number constant inherited
-
This property identifies the current event phase as the bubbling phase.
-
CAPTURING_PHASE number constant inherited
-
This property identifies the current event phase as the capturing phase.
-
currentTarget * inherited
-
This property holds an object that receives notification of the event (via an attached listener).
-
Arbitrary data stored on the event.
-
defaultPrevented boolean inherited
-
This property holds a value indicating if
preventDefault()was called on the current event. -
eventPhase number inherited
-
This property indicates which phase of the event flow is being evaluated.
-
target * inherited
-
This property holds the object which triggered the event.
-
type string inherited
-
This property holds the name of the dispatched event.