我有一个相当复杂的设置,我已经归结为下面的代码.我有一个外部FormPanel,我试图包含一个子类FormPanel的组件.在FF中它导致"this.body is null"错误.
这是发生在其他人身上吗?有可能让这个工作吗?如果我不需要,我非常不想触及子类.
var test = new Ext.Window({
title: 'test',
items: [{
xtype: 'form',
items: [{
// this is where the subclass of FormPanel goes
xtype: 'form',
items: [{
xtype: 'textfield',
fieldLabel: 'Testing'
}]
}]
}]
});
test.show();
Run Code Online (Sandbox Code Playgroud)
Bal*_*an1 15
我不确定这是否是您的确切问题,但我确实知道您永远不应该将xtype:'form'嵌入到xtype:'form'中.如果你需要它的布局功能,而不是xtype:'form',请使用xtype:'panel'和layout:'form'.
| 归档时间: |
|
| 查看次数: |
12860 次 |
| 最近记录: |