FormPanel布局问题

manzhizh 2009-04-17 07:28:03
本人刚用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 : '通知内容为必填项'
}]
}]
});
...全文
169 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
manzhizh 2009-04-18
  • 打赏
  • 举报
回复
难道没人看吗?

52,782

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧