第1个回答 2010-09-27
business.ResultType = Ext.extend(Ext.form.ComboBox, {
editable: false,
typeAhead: true,
mode: 'local',
readonly: true,
triggerAction: 'all',
selectOnFocus: true,
plugins: new Ext.ux.plugin.TriggerfieldTooltip(),
tooltip: {
title: '结果类型',
text: '请选择结果类型'
},
valueField: 'ID',
displayField: 'NAME',
initComponent: function() {
this.store = new Ext.data.SimpleStore({
fields: ['ID', 'NAME'],
data: [
['10', '1],
['20', '2'],
['30', '源'],
['40', '访'],
['50', '向'],
['60', '已']
]
});
business.ResultType.superclass.initComponent.call(this);
}
});