extjs4.2下拉框ComboBox本地store实例
原创 Blackbird 发表于:2018-11-16 14:52:40
  阅读 :168   收藏   编辑

js

var order_type = Ext.create('Ext.form.field.ComboBox',{
			fieldLabel: '状态',
			store: new Ext.data.SimpleStore({
				fields: ['value','key'],
				data: [['1','待付款'],['2','待发货'],['3','待收货'],['4','待评价'],['','所有']]			
			}),
			value: '',
			mode: 'local',
			triggerAction: "all",
			valueField: 'value',
			displayField: 'key',
			labelAlign: 'right'
		});

效果

1