X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.EventObject.html diff --git a/docs/output/Ext.EventObject.html b/docs/output/Ext.EventObject.html index 49ca2bb7..35683502 100644 --- a/docs/output/Ext.EventObject.html +++ b/docs/output/Ext.EventObject.html @@ -1,56 +1,56 @@ -
Package: | Ext |
Defined In: | EventManager.js |
Class: | EventObject |
Extends: | Object |
For example:
-function handleClick(e, t){ // e is not a standard event object, it is a Ext.EventObject
- e.preventDefault();
- var target = e.getTarget(); // same as t (the target HTMLElement)
- ...
-}
-var myDiv = Ext.get("myDiv"); // get reference to an Ext.Element
-myDiv.on( // 'on' is shorthand for addListener
- "click", // perform an action on click of myDiv
- handleClick // reference to the action handler
-);
-// other methods to do the same:
-Ext.EventManager.on("myDiv", 'click', handleClick);
-Ext.EventManager.addListener("myDiv", 'click', handleClick);
Method | Defined By | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getCharCode()
- :
- Number Gets the character code for the event. Gets the character code for the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getKey()
- :
- Number Returns a normalized keyCode for the event. Returns a normalized keyCode for the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getPageX()
- :
- Number Gets the x coordinate of the event. Gets the x coordinate of the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getPageY()
- :
- Number Gets the y coordinate of the event. Gets the y coordinate of the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getRelatedTarget()
- :
- HTMLElement Gets the related target. Gets the related target. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getTarget( [String selector ], [Number/Mixed maxDepth ], [Boolean returnEl ] )
- :
- HTMLelementGets the target for the event. Gets the target for the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getWheelDelta()
- :
- Number Normalizes mouse wheel delta across browsers Normalizes mouse wheel delta across browsers Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
getXY()
- :
- Array Gets the page coordinates of the event. Gets the page coordinates of the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
preventDefault()
- :
- void Prevents the browsers default handling of the event. Prevents the browsers default handling of the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
stopEvent()
- :
- void Stop the event (preventDefault and stopPropagation) Stop the event (preventDefault and stopPropagation) Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
stopPropagation()
- :
- void Cancels bubbling of the event. Cancels bubbling of the event. Parameters:
| EventObject | |||||||||||||||||||||||||||||||||||||||||||||||
within( Mixed el , [Boolean related ], Boolean allowEl )
- :
- BooleanReturns true if the target of this event is a child of el. Unless the allowEl parameter is set, it will return false... Returns true if the target of this event is a child of el. Unless the allowEl parameter is set, it will return false if if the target is el.
-Example usage:
|