パネルのアイテムとしてタブパネルを追加しようとしていますが、期待どおりに機能しません。
以下のように、タブパネルを別のビューとして定義しました。
Ext.define("WU.view.WUTabPanel", {
extend: "Ext.tab.Panel",
alias: "widget.wuTabPanel",
config: {
tabBar: {
docked: 'bottom'
},
items: [
{
title: 'Home',
iconCls: 'home',
html: 'Home Screen',
},
{
title: 'Send Money',
iconCls: 'favorites',
html: 'Contact Screen',
}
]
},
});
これは、パネル内にtabPanelを追加しようとしているメインビューです。
Ext.define('WU.view.WUHomePage', {
extend : 'Ext.Panel',
requires : [ 'Ext.Toolbar', 'Ext.TitleBar', 'Ext.dataview.List', 'Ext.Ajax', 'Ext.data.proxy.Ajax' ],
xtype : 'homePage',
alias : 'widget.wuHomePageView',
config : {
fullscreen : true,
title : 'MainMenu',
// iconCls : 'mainMenuhome',
disabledCls : 'mainMenuhome',
items : [
{
xtype : 'titlebar',
title:'Main Menu',
items : [ {
text : 'Back',
ui:'back',
id : 'homePageBack',
align : 'left',
handler : function(btn) {
console.log('HomePaga >> Back to Login');
this.up('homePage').fireEvent('backButtonCommand', this,'homePage');
}
} ]
},
{
xtype : 'list',
id : 'mainList',
title : 'Sample',
height : '100%',
},
itemTpl : '<div class = mainList>'
'<div class = listArrowImage><img class= mArrowImage src={arrow}></img></div>'
</div>',
},
{
xtype: 'wuTabPanel',
},
],
},
});
mainPageがレンダリングされると、タブバーは下部に表示されず、下部に中空のスペースが残ります。
設定に問題はありますか?この部分を達成する方法についてのより良いアイデアはありますか?私のアプリケーションでは、7〜8個のビューがあり、すべて下部に同じタブバーがあります。
ありがとう。