0
我有constuctor(窗口+ FormPanel中)ExtJS的 - FormPanel中不能正常呈现
AddOrgWindowUI = Ext.extend(Ext.Window, {
title: 'Create something',
width: 400,
height: 200,
layout: 'fit',
initComponent: function() {
this.items = [
{
xtype: 'form',
id: 'add-form',
padding: 5,
initialConfig: Ext.apply(this.initialConfig, {
url: '123132.php'
}),
items: [
{
xtype: 'textfield',
fieldLabel: 'abbr',
anchor: '95%',
value: this.abbr,
emptyText: 'abbr'
}
],
buttons: [
{
text: 'Add',
handler: function() {
Ext.getCmp('add-form').getForm().submit();
}
}
]
}
];
AddOrgWindowUI.superclass.initComponent.call(this);
}});
但是当我试着去创造它 - var AddOrgWindowForm = new AddOrgWindowUI({n_full:'aaa'});AddOrgWindowForm.show();
我得到一个空的窗口(不形面板)为什么FormPanel中不恰当地渲染?我哪里有错误? Thx。
thx很多这个例子! – 2010-09-03 06:26:54
jsfiddle.net的一些有趣的错误 - 在Chrome浏览器中都能正常工作,但是在firefox窗口中不显示:)看起来它只是服务器错误,因为在我的服务器上该示例工作得很好。 Thx Protron! – 2010-09-03 06:45:38