【发布时间】:2012-07-04 18:13:07
【问题描述】:
我在 app.js 中设置了 card 布局。这是代码;
...
launch: function() {
var vp = Ext.create('Ext.container.Viewport', {
layout: 'card',
items: [
{
xtype: 'doctor'
},
{
xtype:'nurse'
}
]
});
}, ...
并且,将加载的第一个视图。这是代码;
Ext.define('RoyProject.view.user.Doctor', {
extend:'Ext.form.Panel',
alias : 'widget.doctor',
id:'docform',
defaultType: 'textfield',
items: [{
fieldLabel: 'Name',
name: 'name'
}],
buttons: [, {
text: 'Send',
action:'send'
}]
});
由于我在 app.js 中使用card 布局,所有第一个视图都被拉伸了,并占据了整个屏幕。因此,为了摆脱这种情况,我想添加一个Panel 并在其中添加一个Panel 以添加我的视图(即RoyProject.view.user.Doctor)。有人可以帮我将此视图添加到面板中,而无需更改代码的逻辑:)
【问题讨论】:
标签: extjs extjs4 extjs-mvc extjs4.1