0
我有一個簡單的RadioGroup中類:RadioGroup中和fireEvent
TestRadioGroup = Ext.extend (Ext.form.RadioGroup, { fieldLabel: 'Test', listeners: { change: function(el,val) { alert(val); } }, constructor: 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(this); } });
我想
fireEvent('change')爲這個項目inputValue的1怎麼辦呢?