Reputation: 17000
ExtJS 4.1
I have Ext.Form.Panel
and Ext.Button
inside of it bound to form with formBind: true;
. Is there a way to access form with button bond to it from within button's handler like getForm()
or something?
Upvotes: 0
Views: 126
Reputation: 4421
You can query up through the button.
{
xtype:'button',
handler: function (button, e) {
button.up('form').getForm();
}
}
Upvotes: 3