var domainStore1 = Ext.create('Ext.data.Store', {
fields: [ {type: 'string', name: 'value'},
{type: 'string', name: 'name'} ],
data : [ {"value" : "1","name" : "1"}, {"value" : "2","name" : "2"}, { "value" : "3","name" : "3"} , {"value" : "4","name" : "4"}, { "value" : "5","name" : "5"}
]
});
Ext.define('Gold,Input.Panel', {
extend : 'Ext.form.Panel',
alias: 'score.reqinput',
frame : true,
layout:'column',
items: [{
xtype : 'combo',
editable :false,
id:'domainStore',
name : 'score',
fieldLabel: 'Choose score',
store: domainStore1,
queryMode: 'local',
displayField: 'name',
valueField: 'value',
anchor:'60%',
minListWidth : 200,
fieldLabel : 'Score'
},
],
initComponent: function () {
this.callParent(arguments);
}
});
extjs4ComboBox
fields: [ {type: 'string', name: 'value'},
{type: 'string', name: 'name'} ],
data : [ {"value" : "1","name" : "1"}, {"value" : "2","name" : "2"}, { "value" : "3","name" : "3"} , {"value" : "4","name" : "4"}, { "value" : "5","name" : "5"}
]
});
Ext.define('Gold,Input.Panel', {
extend : 'Ext.form.Panel',
alias: 'score.reqinput',
frame : true,
layout:'column',
items: [{
xtype : 'combo',
editable :false,
id:'domainStore',
name : 'score',
fieldLabel: 'Choose score',
store: domainStore1,
queryMode: 'local',
displayField: 'name',
valueField: 'value',
anchor:'60%',
minListWidth : 200,
fieldLabel : 'Score'
},
],
initComponent: function () {
this.callParent(arguments);
}
});
extjs4ComboBox
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货