我是Sencha Touch的新手。我有一个现有的Web应用程序,我必须改进。
我创建了一个新面板并尝试将项目添加到现有面板但是在尝试将NULL元素添加为Container itemId / id的子项时出错:ext-comp-1050
我的代码如下
Myapp.views.mainView = new Ext.extend(Ext.Panel, {
initComponent: function() {
this.items = [
Myapp.views.welcomePanel, // new panel I am trying to add
Myapp.views.settingsView,
Myapp.views.placePopup,
Myapp.views.newsPanel
];
this.dockedItems = [];
this.cardAnimation='slide';
this.html = null;
this.fullscreen = true;
this.layout = 'card';
this.align = 'stretch';
Myapp.views.mainView.superclass.initComponent.call(this);
}
});
欢迎Panel的代码是
Myapp.views.welcomePanel = new Ext.Panel({
frame:true,
autoHeight:true,
collapsible:true,
layout:'card',
items:[
Myapp.views.mapPlaces,
Myapp.views.listOfPlaces
],
dockedItems:[
Myapp.views.mainToolBar,
Myapp.views.changerPanelsToolbar
]
});
Myapp.views.mapPlaces, Myapp.views.listOfPlaces, Myapp.views.mainToolBar, Myapp.views.changerPanelsToolbar
是预先存在的&工作没有问题
请帮忙