PDA

View Full Version : How to pass additional parameters to the handler of a button?



Link_
25 Aug 2016, 3:26 PM
Hello guys,


I intend to call the fireHandler () of a button, from another point of my code. I wonder, how should I proceed to go further parameters in the handler of a button?



{
text: 'MyButton',
itemId: 'myBtn',
scope: this,
handler: function (e, param1, param2, param3, ...) {
}
}

...

var btnGrid = grid.query('#myBtn')[0];
btnGrid.fireHandler(param1, param2, param3);

...





thanks