1

How to give a handler function On Controller. This is the code Used In View.This is

working.But i need this hanler function put on a Controller.

items: [{ xtype: 'checkbox',

                name: 'billingSameAsMailing',

                boxLabel: 'Same as Mailing Address?',

                hideLabel: true,

                checked: true,

                style: 'margin-bottom:10px',

                 id:'billingSameAsMailing',

        handler: function(me, checked) {

                    var fieldset = me.ownerCt;

        Ext.getCmp('billingStreet').setDisabled(checked);

        Ext.getCmp('bilcity').setDisabled(checked);

                }

Is It Possible?

Pls Help Me...

1 Answer 1

1

Check out control() function http://docs.sencha.com/ext-js/4-0/#!/api/Ext.app.Controller-method-control

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.