我有这段代码:
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图标,我该怎么做?
答案 0 :(得分:1)
试试这个
{
title:'firstTab',
id:'fTab',
}
{title:'secondTab', ID: '刺', 在此之后,你必须对按钮的处理程序fn进行一些编码,即
handler:function(){
Ext.getCmp('sTab').show();
Ext.getCmp('fTab').hide();
}
}