extjs单选框Ext.form.RadioGroup赋值操作

来源:互联网 发布:风险评估矩阵算法 编辑:程序博客网 时间:2024/05/16 10:21
定义单选框
var txtM1CardIsOpen = new Ext.form.RadioGroup({    fieldLabel: 'M1卡',    items: [        {boxLabel: '授权', name: 'm1cardisopen',width: 70, inputValue: true},        {boxLabel: '不授权', name: 'm1cardisopen',width: 70, inputValue: false}    ]});

让单选框选中第一次
txtM1CardIsOpen.items.get(0).setValue(true);
0 0
原创粉丝点击