如何在coolite标签面板中处理标签更改事件?

时间:2010-09-16 15:18:27

标签: tabpanel

我正在使用coolite tabpanel。我想从客户端处理选项卡更改事件。

1 个答案:

答案 0 :(得分:0)

listeners: {
        'tabchange': function(tabPanel, tab){
            // Ignore tab1 since it is a separate tab panel and we're managing history for it also.
            // We'll use its handler instead in that case so we don't get duplicate nav events for sub tabs.
            if(tab.id != 'tab1'){
                Ext.History.add(tabPanel.id + tokenDelimiter + tab.id);
            }
        }
    }