控制器中的处理程序功能

时间:2012-04-19 07:30:46

标签: extjs

如何在Controller上提供处理函数。这是在View中使用的代码。这是

working.But我需要把这个hanler函数放在Controller上。

项目:[{                     xtype:'复选框',

                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);

                }

可能吗?

请帮助我......

1 个答案:

答案 0 :(得分:1)

相关问题