我需要做一个应用程序,其中有单独的模块,如用户、类别。我想为所有这些创建单独的视图,然后最后想调用主视图。我是煎茶的新手。这个怎么做?
Ext.application({
name: 'AM',
appFolder: 'app',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
//need to replace this with app.views.userPage,how??????????
xtype: 'panel',
title: 'Users',
html : 'List of users will go here'
},
{
xtype: 'panel',
title: 'category',
html : 'List of category will go here'
}
]
});
}
});