目的: V20108 – 工作程序資源設定 – 隱藏 tabBar
處理說明: 1>Template tab_D 才有 setTabVisible 函式, 一般 tabTable 無 setTabVisible 函式Ext.getCmp("tab_D").setTabVisible(0, false);
Ext.getCmp("tab_D").setTabVisible(1, false);
Ext.getCmp("tab_D").setActiveTab(1);
2>一般 tabPanel ,必需用.getTabBar().getComponent(0).hide();
Ext.getCmp("tabPanel_D1").getTabBar().getComponent(0).hide(); // tabbar 不顯示
Ext.getCmp("tabPanel_D2").getTabBar().getComponent(0).hide();
//Template tab_D 才有 setTabVisible 函式, 一般 tabTable 無 setTabVisible 函式
Ext.getCmp("tab_D").setTabVisible(0, false);
Ext.getCmp("tab_D").setTabVisible(1, false);
Ext.getCmp("tab_D").setActiveTab(1);
//一般 tabPanel ,必需用.getTabBar().getComponent(0).hide();
Ext.getCmp("tabPanel_D1").getTabBar().getComponent(0).hide(); // tabbar 不顯示
Ext.getCmp("tabPanel_D2").getTabBar().getComponent(0).hide();
Ext.getCmp("tab_D").setTabVisible(0, false);
Ext.getCmp("tab_D").setTabVisible(1, false);
Ext.getCmp("tab_D").setActiveTab(1);
//一般 tabPanel ,必需用.getTabBar().getComponent(0).hide();
Ext.getCmp("tabPanel_D2").getTabBar().getComponent(0).hide();
沒有留言:
張貼留言