+ border: false,
+ items:{
+ xtype: 'form', // since we are not using the default 'panel' xtype, we must specify it
+ id: 'form-panel',
+ labelWidth: 75,
+ title: 'Form Layout',
+ bodyStyle: 'padding:15px',
+ labelPad: 20,
+ defaults: {
+ width: 230,
+ labelSeparator: '',
+ msgTarget: 'side'
+ },
+ defaultType: 'textfield',
+ items: [{
+ fieldLabel: 'First Name',
+ name: 'first',
+ allowBlank:false
+ },{
+ fieldLabel: 'Last Name',
+ name: 'last'
+ },{
+ fieldLabel: 'Company',
+ name: 'company'
+ },{
+ fieldLabel: 'Email',
+ name: 'email',
+ vtype:'email'
+ }
+ ],
+ buttons: [{text: 'Save'},{text: 'Cancel'}]
+ }