Search This Blog

How to get the button by element id in extjs?

Inline:

        buttons: [{
text: 'Save',
type: 'submit',
id: "save",
handler: function(){ ... }
}],


By reference:



Ext.getCmp('save').on('click', function(){ ... });


 



Original: Cannot assign id to button?

No comments:

Post a Comment