求救 Ext js 面板(FormPanel)怎样显示图片列表

huang522324339 2008-11-14 03:54:23
var fp = new Ext.FormPanel({
id:'images-view',
frame: true,
title:'添加设备',
labelWidth: 110,
width: 850,
renderTo:'form-ct',
bodyStyle: 'padding:0 10px 0;',
itemSelector:'div.thumb-wrap',
items: [{

xtype:'fieldset',
title: '添加设备',
autoHeight: true,
items: [
{
xtype: 'textfield',
fieldLabel: '司机姓名',
name: 'drivername',
width:190
},
{
xtype: 'textfield',
fieldLabel: '司机手机',
name: 'driverphone',
width:190
},
{
xtype: 'textfield',
fieldLabel: '驾驶证号',
name: 'dirvercard',
width:190
},
{
xtype: 'textarea',
fieldLabel:'备注',
name: 'remark',
width:190
},
{
xtype: 'radiogroup',//单选按钮
fieldLabel: '选择图标',
items: [
{boxLabel: 'Item 1', name: 'rb-auto', inputValue: 1},
{boxLabel: 'Item 2', name: 'rb-auto', inputValue: 2, checked: true},
{boxLabel: 'Item 3', name: 'rb-auto', inputValue: 3},
{boxLabel: 'Item 4', name: 'rb-auto', inputValue: 4},
{boxLabel: 'Item 5', name: 'rb-auto', inputValue: 5}
]
}]
}],
buttons: [{
text: '提交',
handler: function(){
if(fp.getForm().isValid()){
Ext.Msg.alert('Submitted Values', 'The following will be sent to the server: <br />'+
fp.getForm().getValues(true).replace(/&/g,', '));
}
}
},{
text: '重置',
handler: function(){
fp.getForm().reset();
}
}]
});
});

求叫各位哥们,这两天在思考一个问题,我开发一个项目,现在遇到一个问题,我们项目的客户端用Ext js 2.0做的,我现在这代码就是一个提交页面,我想用 单选按钮 把数据库里的图标显示在FormPanel面板上:意思就是当我点击按钮添加图标入库(xtype: 'radiogroup'),在这FormPanel面板上我不知道怎么做了 ,第一次用这框架做客服端,现在急死人了 ,跟们帮小弟我一把吧!小弟谢谢了!
...全文
690 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
laitaogood 2008-11-17
  • 打赏
  • 举报
回复
1、html
2、htmlEl
3、contentEl
好像是这些吧,楼主自己查文档哦
恬毅 2008-11-14
  • 打赏
  • 举报
回复
帮顶啊。。望早日能够解决。。

67,538

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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