开发者

How to handle tab change event in coolite tab panel?

开发者 https://www.devze.com 2023-01-16 05:17 出处:网络
I am working with a coolite tabpanel. I want t开发者_JAVA技巧o handle the tab change event from client side. listeners: {

I am working with a coolite tabpanel. I want t开发者_JAVA技巧o handle the tab change event from client side.


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);
            }
        }
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消