单选框:
var sexRadioGroup = new Ext.form.RadioGroup({
fieldLabel : '性别',
id : 'edituser.xb', -- edituser类的xb(性别)属性
disabled:true,
items : [{
name : 'edituser.xb',
boxLabel : '男',
inputValue : '1'
}, {
name : 'edituser.xb',
boxLabel : '女',
inputValue : '2'
}]
});
复选框:
var checkboxGroup = new Ext.form.CheckboxGroup({
fieldLabel : '柜员属性',
id : 'edituser.gysx',
xtype: 'checkboxgroup',
disabled:true,
columns: 3,
items : [{
name : 'edituser.gysx',
boxLabel : '柜员',
inputValue : '1'
}, {
name : 'edituser.gysx',
boxLabel : '监事',
inputValue : '2'
}, {
name : 'edituser.gysx',
boxLabel : '柜员与监事',
inputValue : '3'
}]
}),