extjs 4 クラス モデルで問題が発生しました。ビューポート内にタブパネルを取得したい。独自の要素を定義し、xcode で自動ロードすることで実行します。しかし、私は親クラス自体の中でそれを成し遂げていません。
Ext.define('MyApp.views.TheWindow', {
extend : 'Ext.Viewport',
requires: [],
border : false,
layout : {
type : 'fit'
},
initComponent : function() {
this.items = this.buildItems();
this.callParent();
},
buildItems : function() {
return [
{
extend: 'Ext.TabPanel',
activeTab: 0,
alias: 'widget.MyTapPanel',
items: [
{
title: 'Artikel Manager',
html: 'test'
/*items: [
{
}
]*/
},
{
title: 'Artikel Manager',
html: 'test'
/*items: [
{
}
]*/
}
]
}
];
}
});
私のコードの何が問題なのですか?