使用1
Ext.csap.ComboBox = Ext.extend(Ext.form.ComboBox, {
constructor : function(config) {
config = config || {};
Ext.apply(this, config);
// 继承后,新对象的一些默认配置
var defaultConfig = {
model : 'local',
triggerAction : 'all',
forceSelection : true,
editable : false,
listeners : {
expand : function(c) {
c.doQuery('all', true);
}
}
};
Ext.csap.ComboBox.superclass.constructor.call(this, defaultConfig);
}
});