PDA

View Full Version : handler and callback



oturkan
5 Oct 2013, 1:47 PM
buttons: [{
text: 'Save',
handler: me.addressSaveClick,
scope: me
}]
addressSaveClick: function (callback) {
var me = this;
.
.
if (typeof callback == 'function') {
callback();
}
}



how can use callback on button handler

ettavolt
6 Oct 2013, 10:20 PM
Try to bind in initComponent of container, that have addressSaveClick method.

oturkan
6 Oct 2013, 10:49 PM
thanks worked