0

我有一个简单的 RadioGroup 类:

TestRadioGroup = Ext.extend (Ext.form.RadioGroup, {
        fieldLabel:'测试',
        听众:{
            更改:函数(el,val){
                警报(val);
            }
        },
        构造函数:函数(配置){
            这个.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('改变')
            TestRadioGroup.superclass.constructor.call(this);
        }
});

我想要

火灾事件('改变')
对于项目这个 inputValue 1. 怎么做?

4

1 回答 1

2

大概是这样的

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