Ext 处理性别单选按钮

new Ext.form.RadioGroup({
fieldLabel : '性别',
// horizontal : true,
items : [new Ext.form.Radio({
name : 'sex',
boxLabel : '男',
inputValue: '男'
}), new Ext.form.Radio({
name : 'sex',
labelSeparator : '',
boxLabel : '女',
inputValue: '女'
})]
}),

我们把它放到RadioGroup里面就可以设置大小了,不用inputValue的话,得到的值就是 on

你可能感兴趣的:(ext)