Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides several useful events directly. See Ext.EventObject for more details on normalized event objects.
Appends an event handler to an element. The shorthand version on is equivalent. Typically you will use Ext.core.Element.addListener directly on an Element in favor of calling this version.
The html element or id to assign the event handler to.
The name of the event to listen for.
The handler function the event invokes. This function is passed the following parameters:
(optional) The scope (this
reference) in which the handler function is executed. Defaults to the Element.
(optional) An object containing handler configuration properties. This may contain any of the following properties:
this
reference) in which the handler function is executed. Defaults to the Element.See Ext.core.Element.addListener for examples of how to use these options.
Get the id of the element. If one has not been assigned, automatically assign it.
Get the id of the element. If one has not been assigned, automatically assign it.
The element to get the id for.
id
Indicates which event to use for getting key presses.
Indicates which event to use for getting key presses.
The appropriate event name.
Gets the x coordinate from the event
Gets the x coordinate from the event
The event
The x coordinate
Gets the x & ycoordinate from the event
Gets the x & ycoordinate from the event
The event
The x/y coordinate
Gets the y coordinate from the event
Gets the y coordinate from the event
The event
The y coordinate
Gets the related target from the event.
Gets the related target from the event.
The event
The related target.
Gets the target of the event.
Gets the target of the event.
The event
target
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().
The method the event invokes.
(optional) The scope (this
reference) in which the handler function executes. Defaults to the browser window.
(optional) Options object as passed to Ext.core.Element.addListener.
Adds a listener to be notified when the browser window is resized and provides resize event buffering (100 milliseconds), passes new viewport width and height to handlers.
The handler function the window resize event invokes.
The scope (this
reference) in which the handler function executes. Defaults to the browser window.
Options object as passed to Ext.core.Element.addListener
Prevents the browsers default handling of the event.
Prevents the browsers default handling of the event.
event to prevent the default
Recursively removes all previous added listeners from an element and its children. Typically you will use Ext.core.Element.purgeAllListeners directly on an Element in favor of calling this version.
The id or html element from which to remove all event handlers.
(optional) The name of the event.
Removes all event handers from an element. Typically you will use Ext.core.Element.removeAllListeners directly on an Element in favor of calling this version.
The id or html element from which to remove all event handlers.
Removes an event handler from an element. The shorthand version un is equivalent. Typically you will use Ext.core.Element.removeListener directly on an Element in favor of calling this version.
The id or html element from which to remove the listener.
The name of the event.
The handler function to remove. This must be a reference to the function passed into the addListener call.
If a scope (this
reference) was specified when the listener was added,
then this must refer to the same object.
Removes the passed window resize listener.
Removes the passed window resize listener.
The method the event invokes
The scope of handler
Removes the passed window unload listener.
Removes the passed window unload listener.
The method the event invokes
The scope of handler
Stop the event (preventDefault and stopPropagation)
Stop the event (preventDefault and stopPropagation)
event to stop
Cancels bubbling of the event.
Cancels bubbling of the event.
event to stop bubbling.
Alias for Ext.EventManager.removeListener