Ext.event.Dom

Subclasses

Files

NOTE: This is a private utility class for internal use by the framework. Don't rely on its existence.

DOM event. This class really extends Ext.event.Event, but for documentation purposes it's members are listed inside Ext.event.Event.

Defined By

Properties

The distance of the event. ...

The distance of the event.

This is only available when the event type is swipe and pinch.

Ext.event.Dom
view source
: Number

The browsers x coordinate of the event.

The browsers x coordinate of the event.

Ext.event.Dom
view source
: Number

The browsers y coordinate of the event.

The browsers y coordinate of the event.

Ext.event.Dom
view source
: HTMLElement
The target HTMLElement for this event. ...

The target HTMLElement for this event. For example; if you are listening to a tap event and you tap on a <div> element, this will return that <div> element.

Defined By

Methods

Ext.event.Dom
view source
new( event ) : Ext.event.Dom
...

Parameters

Returns

Ext.event.Dom
view source
( ) : Numberdeprecated
Gets the x coordinate of the event. ...

Gets the x coordinate of the event.

This method has been deprecated since 2.0

Please use pageX property directly.

Returns

Ext.event.Dom
view source
( ) : Numberdeprecated
Gets the y coordinate of the event. ...

Gets the y coordinate of the event.

This method has been deprecated since 2.0

Please use pageX property directly.

Returns

Ext.event.Dom
view source
( [selector], [maxDepth], [returnEl] ) : HTMLElement
Gets the target for the event. ...

Gets the target for the event. Unlike target, this returns the main element for your event. So if you are listening to a tap event on Ext.Viewport.element, and you tap on an inner element of Ext.Viewport.element, this will return Ext.Viewport.element.

If you want the element you tapped on, then use target.

Parameters

  • selector : String (optional)

    A simple selector to filter the target or look for an ancestor of the target

  • maxDepth : Number/Mixed (optional)

    The max depth to search as a number or element (defaults to 10 || document.body)

    Defaults to: 10||document.body

  • returnEl : Boolean (optional)

    true to return a Ext.Element object instead of DOM node.

Returns

  • HTMLElement
Ext.event.Dom
view source
( ) : Date
Returns the time of the event. ...

Returns the time of the event.

Returns

Ext.event.Dom
view source
( ) : Arraydeprecated
Gets the X and Y coordinates of the event. ...

Gets the X and Y coordinates of the event.

This method has been deprecated since 2.0

Please use the pageX and pageY properties directly.

Returns

Fires

    Ext.event.Dom
    view source
    ( )private
    ...
    Prevents the browsers default handling of the event. ...

    Prevents the browsers default handling of the event.

    Ext.event.Dom
    view source
    ( target )private
    ...

    Parameters