I have a question about simple button.
Below definition:
var table = null;
var buttonConfig = {
buttonId: 'mybutton1',
text: 'Template button',
icon: 'style/img/fam/button.png',
tooltip: 'template button',
handler: function () {
var someConfig = null;
fileProcessing(someButton, someConfig);
}
};
addButtonToGrid(table, buttonConfig);
Function called fileProcessing has 2 args - someButton and someConfig.
I want to pass in someButtton, the button from object buttonConfig. How should I do it ?
Thanks for any advice