Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha touch 选项卡面板-两张卡-如何导航到它们_Sencha Touch_Extjs_Sencha Touch 2 - Fatal编程技术网

Sencha touch 选项卡面板-两张卡-如何导航到它们

Sencha touch 选项卡面板-两张卡-如何导航到它们,sencha-touch,extjs,sencha-touch-2,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'

我有以下代码:

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,这意味着选项卡1图标仍然处于选中状态,我该怎么做?

试试这个

{
title:'firstTab',
id:'fTab',
}
{标题:'secondTab', id:'sTab', 在此之后,您必须对按钮的处理程序fn进行一些编码,即

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