var cbg=new Ext.form.CheckboxGroup(
{
columnWidth:1,
name:'cbg',
id:'cbg',
xtype: 'checkboxgroup',
fieldLabel:'类别',
columns: 2,
items: [
{boxLabel: '名称1', name:'TTypeID',inputValue:'1',anchor:'100%'},
{boxLabel: '名称2', name:'TTypeID',inputValue:'2',anchor:'100%'},
{boxLabel: '名称3', name:'TTypeID',inputValue:'3',anchor:'100%'},
{boxLabel: '名称4', name:'TTypeID',inputValue:'4',anchor:'100%'}
]
});
var myForm =new Ext.form.FormPanel({
id: 'myForm',
layout: 'form',
frame: true,
labelWidth: 100,
labelAlign: 'right',
items: [
{
xtype: 'textfield',
fieldLabel: '姓名'
},
cbg
]