Extjs 4.2 组合 - 从 BoundList 清除监听器
Extjs 4.2 combo - clear listeners from the BoundList
如何从我的 ComboBox 中删除 listConfig
侦听器:
var combo = Ext.create('Ext.form.ComboBox', {
valueField : 'id',
store: store,
displayField : 'description',
editable : true,
autoSelect : false,
forceSelection : false,
allowBlank : true,
typeAhead : false,
mode : 'local',
listConfig : {
listeners : {
itemclick : function(){ console.log('listConfig listeners itemclick'); }
}
}
});
我试过combo.listConfig.clearListeners()
,但是这里的listConfig
成员似乎只是配置(没有方法)。我需要访问组合的实际 Ext.view.BoundList
,所以我可以调用 clearListeners()
,但似乎没有 getter?
combo.getPicker().clearListeners()
如何从我的 ComboBox 中删除 listConfig
侦听器:
var combo = Ext.create('Ext.form.ComboBox', {
valueField : 'id',
store: store,
displayField : 'description',
editable : true,
autoSelect : false,
forceSelection : false,
allowBlank : true,
typeAhead : false,
mode : 'local',
listConfig : {
listeners : {
itemclick : function(){ console.log('listConfig listeners itemclick'); }
}
}
});
我试过combo.listConfig.clearListeners()
,但是这里的listConfig
成员似乎只是配置(没有方法)。我需要访问组合的实际 Ext.view.BoundList
,所以我可以调用 clearListeners()
,但似乎没有 getter?
combo.getPicker().clearListeners()