Sencha touch 在Sencha Touch 2中单击选项卡时更改视图?
是否可以使用带有选项卡栏的视图,并在单击时连接选项卡以显示不同的视图Sencha touch 在Sencha Touch 2中单击选项卡时更改视图?,sencha-touch,extjs,sencha-touch-2,Sencha Touch,Extjs,Sencha Touch 2,是否可以使用带有选项卡栏的视图,并在单击时连接选项卡以显示不同的视图 提前谢谢 是的,SDK中甚至内置了一个: 要在其中切换的视图只是选项卡面板视图的子视图: Ext.create('Ext.TabPanel', { fullscreen: true, tabBarPosition: 'bottom', defaults: { styleHtmlContent: true }, items: [ {
提前谢谢 是的,SDK中甚至内置了一个: 要在其中切换的视图只是选项卡面板视图的子视图:
Ext.create('Ext.TabPanel', {
fullscreen: true,
tabBarPosition: 'bottom',
defaults: {
styleHtmlContent: true
},
items: [
{
title: 'Home',
iconCls: 'home',
html: 'Home Screen'
},
{
title: 'Contact',
iconCls: 'user',
html: 'Contact Screen'
}
]
});
结果比我想象的要容易
items: [
{
xtype: 'xtype of the view you want to link to'
}]
谷歌多少钱?”sencha touch 2文档和sencha touch 2示例是的,我知道sencha touch 2中实际存在一个选项卡面板。。。我不知道的是如何将视图链接到选项卡。编辑了一个例子,来自文档的回复。