Event in DOM Level 2 Events
The base class from which event instances inherit.
For more information see http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event.
Inerhited by:
Instance Properties
| name | type | description |
|---|---|---|
| bubbles | Boolean | (read only) |
| cancelable | Boolean | (read only) |
| currentTarget | EventTarget | (read only) The object to which the event handler was assigned. |
| eventPhase | Number | (read only) When/where did the event take place? |
| target | EventTarget | (read only) The object which caught the event. |
| timeStamp | Number | (read only) Date/time that the event occurred. |
| type | String | (read only) |
Instance Methods
| name | returns | description |
|---|---|---|
| initEvent(eventTypeArg,canBubbleArg,cancelableArg) | (none) | Initialize the event object prior to dispatching it. |
| preventDefault() | (none) | |
| stopPropagation() | (none) |
Constants
| name | object | value | description |
|---|---|---|---|
| CAPTURING_PHASE | Event | 1 | |
| AT_TARGET | Event | 2 | |
| BUBBLING_PHASE | Event | 3 |
Properties that are a Event
| name | object | description |
|---|---|---|
| event | [d3] d3 | (read only) The current event (if any). Used for handling events during a callback invoked selection.on(). |
Methods that return a Event
| name | of object | description |
|---|---|---|
| createEvent(eventType) | DocumentEvent | Creates and returns a new Event object. |
Arguments that are a Event
| name | in method | of object | description |
|---|---|---|---|
| evt | dispatchEvent(evt) | EventTarget | A valid event object |