I am using sencha touch. Can i call parametrized handler function on an item of action sheet ? If yes then how to do this. Kindly help me ..
I want to do this ,,
var z = function test(){alert('Hellow')};
In the handler function :
handler:function(z){
alert(z);
}
it is not working .. Just showing .. “Index.html (Object:Object)”
Thanx in advance
Yes, you can do this but this is based on the parameters provided by the caller of the handler. In case of it button this would be the ‘click’ event. But you can always view all passed arguments when reading the
argumentsarray likeand if you know that there is for example one argument you know you (lets take the button) can define it
You also need to know that
alertis not capable of printing JavaScript Objects! Useconsole.logfor this.