开发者

RadioGroup and fireEvent

开发者 https://www.devze.com 2023-03-03 00:28 出处:网络
I have a simple RadioGr开发者_Python百科oup class: TestRadioGroup = Ext.extend ( Ext.form.RadioGroup, {

I have a simple RadioGr开发者_Python百科oup class:

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

I want to

fireEvent('change')
for item this inputValue 1. How to do it ?


Probably something like that

TestRadioGroup.fireEvent('change', TestRadioGroup, checkedRadioObj)
0

精彩评论

暂无评论...
验证码 换一张
取 消