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