2012-07-24 16 views
0

我有這樣的代碼:Tab平板 - 兩張牌 - 如何來找到它們

Ext.define('myapp.view.my_view', { 
extend: 'Ext.TabPanel', 
xtype: 'myapp_myview', 
config: { 
    fullscreen:true, 
tabBarPosition: 'bottom', 
    items: [ 
     { 
      xtype: 'top_bar' 
     }, 
     { 
      xtype: 'title_bar', 
     }, 
     { 
      title: 'TAB 1', 
      items: [ 
       { 
        xtype: 'myapp_tab1_screen1', 
       }, 
       { 
        xtype: 'mayapp_tab1_screen2', 
       }, 
      ] 
     } 
    ] 
} 
}); 

我想在屏幕1,其滑動到屏幕2按鈕,這意味着TAB 1圖標仍處於選中狀態,如何我是否這樣做?

回答

1

試試這個

{ 
title:'firstTab', 
id:'fTab', 
} 

{標題: 'secondTab', ID: '刺', 後,這款U要做的按鈕的處理程序FN一些編碼即

handler:function(){ 
Ext.getCmp('sTab').show(); 
Ext.getCmp('fTab').hide(); 
} 
} 
相關問題