我有一个相当复杂的设置,我已将其归结为以下代码。我有一个外部 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();
最佳答案
我不确定这是否是您的确切问题,但我知道您永远不应该将 xtype: 'form' 嵌入到 xtype: 'form' 中。如果您需要它的布局功能,那么不要使用 xtype: 'form',而是使用 xtype: 'panel' with layout: 'form'。
关于javascript - FormPanel 中的 ExtJS FormPanel 失败并显示 "this.body is null",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1160496/