タブバーを使用してビューを作成し、タブを接続してクリック時に異なるビューを表示することは可能ですか?
よろしくお願いします!
はい、SDKに組み込まれているものもあります:http://docs.sencha.com/touch/2-0/# !/ api / Ext.tab.Panel
切り替えたいビューは、タブパネルビューの子にすぎません。
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'
}]