-
5 Oct 2011 11:15 PM #1
bind event
bind event
Hello !
I have a beginner question.
I will bind a event to a function.
In JQuery i write
$(".mole").bind('click',function(e){
...
});
How can I express this in Ext JS ?
Your sincerly
Stephan
-
6 Oct 2011 1:46 AM #2
Code:Ext.get(".mole").on('click',function(e){ ... });
-
6 Oct 2011 2:52 AM #3
arguments in the function
arguments in the function
Hello !
Thanks for the information.
When i use the function and i controll the variables in the function i see an array
with the name 'arguments'. Where can i found same information about this array ?
Your sincerly
Stephan
-
6 Oct 2011 2:58 AM #4
Do you mean the arguments pseudo-array that is available in all javascript functions? https://developer.mozilla.org/en/Jav...cope/arguments
If you want to know what parameters are available to the event listener, look in the documentation, for example the 'click' event of Ext.Element says:Fires when a mouse click is detected within the element.Listeners will be called with the following arguments:- e : Ext.EventObjectThe Ext.EventObject encapsulating the DOM event.
- t : HtmlElementThe target of the event.
- o : ObjectThe options configuration passed to the addListener call.


Reply With Quote