- new Ext.form.ComboBox({
- fieldLabel: 'State',
- hiddenName:'state',
- store: new Ext.data.ArrayStore({
- fields: ['abbr', 'state'],
- data : Ext.exampledata.states // from states.js
- }),
- valueField:'abbr',
- displayField:'state',
- typeAhead: true,
- mode: 'local',
- triggerAction: 'all',
- emptyText:'Select a state...',
- selectOnFocus:true,
- width:190
+ items: [{
+ xtype: 'fieldset',
+ title: 'Contact Information',
+ defaultType: 'textfield',
+ defaults: {
+ width: 280
+ },
+ items: [{
+ fieldLabel: 'First Name',
+ emptyText: 'First Name',
+ name: 'first'
+ }, {
+ fieldLabel: 'Last Name',
+ emptyText: 'Last Name',
+ name: 'last'
+ }, {
+ fieldLabel: 'Company',
+ name: 'company'
+ }, {
+ fieldLabel: 'Email',
+ name: 'email',
+ vtype:'email'
+ }, {
+ xtype: 'combobox',
+ fieldLabel: 'State',
+ name: 'state',
+ store: Ext.create('Ext.data.ArrayStore', {
+ fields: ['abbr', 'state'],
+ data : Ext.example.states // from states.js