0

私は単純な RadioGroup クラスを持っています:

TestRadioGroup = Ext.extend ( Ext.form.RadioGroup, {
        fieldLabel: 'テスト',
        リスナー: {
            変更: 関数(el,val) {
                アラート (値);
            }
        }、
        コンストラクタ: function(config) {
            this.items = [];
            this.items.push ( {boxLabel: 'Test1', name: 'test', inputValue: 2 } );
            this.items.push ( {boxLabel: 'Test2', name: 'test', inputValue: 1 } );
            this.items.push ( {boxLabel: 'Test',name: 'test', inputValue: 0 } );
// fireEvent('change')
            TestRadioGroup.superclass.constructor.call(これ);
        }
});

したい

fireEvent('変更')
アイテムのこのinputValue 1.それを行う方法は?

4

1 に答える 1

2

おそらくそのようなもの

TestRadioGroup.fireEvent('change', TestRadioGroup, checkedRadioObj)
于 2011-05-04T16:22:10.103 に答える