{name:'testRadioGroup', xtype: 'radiogroup',fieldLabel: '',labelWidth: 5,
items: [
{boxLabel: '苹果', name: 'fruit', inputValue: "苹果", id:'chooseFruit'},
{boxLabel: '香蕉', name: 'fruit', inputValue: "香蕉"},
{boxLabel: '桃子', name: 'fruit', inputValue: "桃子", checked: true}
]}
页面显示
控制台显示:
注:第一项要指定id属性!