标签面板 - 两张卡片 - 如何导航到它们

时间:2012-07-24 16:10:23

标签: sencha-touch extjs sencha-touch-2

我有这段代码:

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',
                },
            ]
         }
    ]
}
});

我想在screen1中有一个滑动到screen2的按钮,这意味着仍然选择了TAB 1图标,我该怎么做?

1 个答案:

答案 0 :(得分:1)

试试这个

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

{title:'secondTab',     ID: '刺', 在此之后,你必须对按钮的处理程序fn进行一些编码,即

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