Package: | Ext |
Defined In: | EventManager.js |
Class: | EventManager |
Extends: | Object |
Method | Defined By | |
---|---|---|
addListener( String/HTMLElement el , String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to an element. The shorthand version on is equivalent. Typically you will
use Ext.Element.... Appends an event handler to an element. The shorthand version on is equivalent. Typically you will
use Ext.Element.addListener directly on an Element in favor of calling this version. Parameters:
| EventManager | |
getPageX()
:
Number Gets the x coordinate of the event. Gets the x coordinate of the event. Parameters:
| EventManager | |
getPageY()
:
Number Gets the y coordinate of the event. Gets the y coordinate of the event. Parameters:
| EventManager | |
getTarget( [String selector ], [Number/Mixed maxDepth ], [Boolean returnEl ] )
:
HTMLelementGets the target for the event. Gets the target for the event. Parameters:
| EventManager | |
getXY()
:
Array Gets the page coordinates of the event. Gets the page coordinates of the event. Parameters:
| EventManager | |
on( String/HTMLElement el , String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to an element. Shorthand for addListener. Appends an event handler to an element. Shorthand for addListener. Parameters:
| EventManager | |
onDocumentReady( Function fn , [Object scope ], [boolean options ] )
:
voidAdds a listener to be notified when the document is ready (before onload and before images are loaded). Can be
access... Adds a listener to be notified when the document is ready (before onload and before images are loaded). Can be
accessed shorthanded as Ext.onReady(). Parameters:
| EventManager | |
onWindowResize( Function fn , Object scope , boolean options )
:
voidAdds a listener to be notified when the browser window is resized and provides resize event buffering (50 millisecond... Adds a listener to be notified when the browser window is resized and provides resize event buffering (50 milliseconds),
passes new viewport width and height to handlers. Parameters:
| EventManager | |
preventDefault()
:
void Prevents the browsers default handling of the event. Prevents the browsers default handling of the event. Parameters:
| EventManager | |
removeAll( String/HTMLElement el )
:
voidRemoves all event handers from an element. Typically you will use Ext.Element.removeAllListeners
directly on an Elem... Removes all event handers from an element. Typically you will use Ext.Element.removeAllListeners
directly on an Element in favor of calling this version. Parameters:
| EventManager | |
removeListener( String/HTMLElement el , String eventName , Function fn , Object scope )
:
voidRemoves an event handler from an element. The shorthand version un is equivalent. Typically
you will use Ext.Elemen... Removes an event handler from an element. The shorthand version un is equivalent. Typically
you will use Ext.Element.removeListener directly on an Element in favor of calling this version. Parameters:
| EventManager | |
stopEvent()
:
void Stop the event (preventDefault and stopPropagation) Stop the event (preventDefault and stopPropagation) Parameters:
| EventManager | |
stopPropagation()
:
void Cancels bubbling of the event. Cancels bubbling of the event. Parameters:
| EventManager | |
un( String/HTMLElement el , String eventName , Function fn , Object scope )
:
voidRemoves an event handler from an element. Shorthand for removeListener. Removes an event handler from an element. Shorthand for removeListener. Parameters:
| EventManager |