s.webbandit
s.webbandit

Reputation: 17000

ExtJS form access from inside

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

Answers (1)

Johan Haest
Johan Haest

Reputation: 4421

You can query up through the button.

{
    xtype:'button',
    handler: function (button, e) {
        button.up('form').getForm();
    }
}

Upvotes: 3

Related Questions