Threaded View
-
8 Dec 2011 1:19 PM #1
Answered: Issue: Parameters in Event function
Answered: Issue: Parameters in Event function
Hello,
I am new to Sencha Touch, I can't figure out which params and in which order should be used in Event function: e.g.
Code:onDoubleTap: function(event, html, obj)
It seems param event is not always the first param.Code:onDragend: function(draggable, event)
where can I check params for each event or where defines how to add params
Thanks a lot !best regards !
-
Best Answer Posted by rdougan
If you are listening to an event on an Ext.Element instance, the params are always:
If you are listening to an event on a component, we try to keep a consistent signature. In most cases, the component is the first argument, then any related arguments after that:Code:tap: function(e, node, options) { }
Unfortunately in some cases, this does not happen. We are improving the event signatures drastically in ST2 before GA.Code:hiddenchange: function(component, floating) { }


Reply With Quote