Javascript extjs中的浮动容器或组件未触发事件

Javascript extjs中的浮动容器或组件未触发事件,javascript,extjs,components,onclicklistener,floating,Javascript,Extjs,Components,Onclicklistener,Floating,我添加了一个float容器,并在其中添加了一个组件,如下所示 var me = this; var lastTab = me.getLastTabInTabPanel(); var iconContainer = me.down('#iconContainer'); if (iconContainer == null) { iconContainer = Ext.create('Ext.panel.Panel', { id: 'iconContainer',

我添加了一个float容器,并在其中添加了一个组件,如下所示

var me = this;
var lastTab = me.getLastTabInTabPanel();
var iconContainer = me.down('#iconContainer');
if (iconContainer == null) {
    iconContainer = Ext.create('Ext.panel.Panel', {
        id: 'iconContainer',
        floating: true,
        shadow: false,
        listeners: {
            click: this.valIconClicked,
            scope: this
        },
        style: 'margin-left:280px;',
        items: [
            {
                xtype: 'component',
                id: 'valIcon',
                cls: 'valuation-tool-specview',
                height: 33,
                width: 26,
                listeners: {
                    click: this.valIconClicked,
                    scope: this
                }
            }
        ]
    });
}
iconContainer.showBy(lastTab, 'tl-tr');//, [-2, 0]

点击事件没有被解雇,我错过了什么吗

组件没有单击事件。但您可以将侦听器附加到其元素的单击,如下所示:

listeners: {
    click: {
        element: 'el',
        scope: this,
        fn: this.valIconClicked
   }
}