PythonMonkey   v1.0.1 (dev)
Loading...
Searching...
No Matches
Event Class Reference
Inheritance diagram for Event:
[legend]

Public Member Functions

 constructor (type)
 

Public Attributes

 bubbles = false
 
 cancelable = true
 
 composed = false
 
 currentTarget = null
 
 devaultPrevented = false
 
 eventPhase = Event.NONE
 
 isTrusted = false
 
 target = null
 
 timeStamp = null
 
 type = ''
 

Static Public Attributes

static NONE = 0
 
static CAPTURING_PHASE = 1
 
static AT_TARGET = 2
 
static BUBBLING_PHASE = 3
 

Detailed Description

The Event interface represents an event which takes place in the DOM.

See also
https://developer.mozilla.org/en-US/docs/Web/API/Event

Member Function Documentation

◆ constructor()

Event::constructor (   type)
Parameters
{string}type A string with the name of the event.

Member Data Documentation

◆ AT_TARGET

Event::AT_TARGET = 2
static

◆ bubbles

Event::bubbles = false

Indicates whether the event bubbles up through the DOM tree or not. @type {Boolean}

◆ BUBBLING_PHASE

Event::BUBBLING_PHASE = 3
static

◆ cancelable

Event::cancelable = true

Indicates whether the event is cancelable. @type {Boolean}

◆ CAPTURING_PHASE

Event::CAPTURING_PHASE = 1
static

◆ composed

Event::composed = false

Indicates whether the event can bubble across the boundary between the shadow DOM and the regular DOM. @type {Boolean}

◆ currentTarget

Event::currentTarget = null

The element to which the event handler has been attached. @type {EventTarget}

◆ devaultPrevented

Event::devaultPrevented = false

Indicates whether the call to event.preventDefault() canceled the event. @type {Boolean}

◆ eventPhase

Event::eventPhase = Event.NONE

Indicates which phase of the event flow is currently being evaluated. @type {Number}

◆ isTrusted

Event::isTrusted = false

Indicates whether the event was initiated by the browser or by a script. @type {Boolean}

◆ NONE

Event::NONE = 0
static

◆ target

Event::target = null

A reference to the object to which the event was originally dispatched. @type {EventTarget}

◆ timeStamp

Event::timeStamp = null

The time at which the event was created (in milliseconds). By specification, this value is time since epoch. @type {Number}

◆ type

Event::type = ''

The name identifying the type of the event. @type {String}


The documentation for this class was generated from the following file: