对于tabpanel中的每个选项卡,我有一个浮动面板位于固定位置.当我切换标签时,我需要将相应的浮动面板放在前面.但是,tabchange事件仅在第一次触发时触发.单击选项卡时,如何捕获此tabchange或其他类似事件?
Alexey,这是我的示例代码,其中包含更具体的问题:
Ext.onReady(function() {
panel1 = Ext.create('Ext.panel.Panel', {
title: 'title1', width: 800, height: 50,
listeners: { 'beforeshow': { fn: function() {
console.log("beforeshow on title1");
}, scope: this, single: true } }
});
panel2 = Ext.create('Ext.panel.Panel', {
title: 'title2', width: 800, height: 50,
listeners: { 'beforeshow': { fn: function() {
console.log("beforeshow on title2");
}, scope: this, single: true } }
});
panel3 = Ext.create('Ext.panel.Panel', {
title: 'title3', width: 800, height: 50,
listeners: { 'beforeshow': { fn: function() {
console.log("beforeshow on title3"); …Run Code Online (Sandbox Code Playgroud)