Skip to content

Instantly share code, notes, and snippets.

@caleywoods
Created October 11, 2012 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caleywoods/cfdd7508793586ed9003 to your computer and use it in GitHub Desktop.
Save caleywoods/cfdd7508793586ed9003 to your computer and use it in GitHub Desktop.
items: [{
xtype: 'combobox',
fieldLabel: 'Type',
disabled: true,
allowBlank: false,
labelStyle: 'font-size: 10px',
width: 200,
name: 'line_item_type_id',
id: 'line_item_type_id',
displayField: 'line_item_type',
valueField: 'id',
store: invoicer_lineItemTypeStore,
forceSelection: true,
queryMode: 'remote',
minChars: 2,
typeAhead: true,
typeAheadDelay: '75',
tabIndex: 1
},{
xtype: 'combobox',
fieldLabel: 'Item #',
labelStyle: 'font-size: 10px',
disabled: true,
editable: true,
name: 'item_id',
id: 'item_id',
store: invoicer_itemNumberStore,
displayField: 'item_display_name',
valueField: 'id',
minChars: 2,
typeAhead: true,
typeAheadDelay: '75',
allowBlank: false,
forceSelection: true,
width: 350,
lastQuery: '',
listeners: {
beforequery: function(){
delete this.lastQuery
}
},
tabIndex: 2
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment