FormPanel布局问题
本人刚用ext不久,对于布局方面不是很理解,下面的代码搞很久都没搞好,请大家帮忙改下
var formPanel = new Ext.form.FormPanel({
labelWidth : 70,
frame : true,
autoHeight : true,
resizable : false,
labelAlign : 'right',
defaultType : 'textfield',
items : [{
xtype : 'fieldset',
title : ' ',
autoHeight : true,
items : [{
layout : 'column',
border : false,
items : [{
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'title',
fieldLabel : '标题',
width : 200,
allowBlank : false,
blankText : '客户名称为必填项'
}]
}, {
columnWidth : .5,
layout : 'form',
defaultType : 'textfield',
items : [{
name : 'promulgator',
fieldLabel : '发布者',
width : 200,
allowBlank : false,
blankText : '成功机率为必填项',
}]
}, {
xtype : 'hidden',
name : 'id'
}]
}]
}, {
xtype : 'fieldset',
title : '通知内容',
autoHeight : true,
items : [{
layout : 'fit',
xtype : 'htmleditor',
height : 125,
width : 560,
name : 'content',
hideLabel : true,
allowBlank : false,
blankText : '通知内容为必填项'
}]
}]
});