Extjs菜鸟入门问题求解

SteveGua 2015-04-02 02:37:11
目标如图:

但是只能做到:

单选多选上面的复选框是怎么设置出来的呢!!
  <script type="text/javascript">
Ext.onReady(function(){
var config={
title:'附加实验',
labelSeparator:':',
labelWidth:60,
labelAlign:'right',
bodyStyle:'padding:5 5 5 5',
frame:true,
height:300,
width:300,
renderTo:'form',
defaultType:'checkbox',


items:[{
defaultType:'checkbox',
title:'多选',
checked:true,
xtype:'fieldset',
autoHeight:true,

items:[
{boxLabel:'多选一',inputValue:'11',checked:true},
{boxLabel:'多选二',inputValue:'12'},
{boxLabel:'多选三',inputValue:'13'},
]
},{
defaultType:'radio',
title:'单选',
xtype:'fieldset',
autoHeight:true,
items:[
{boxLabel:'单选一',inputValue:'21',checked:true,},
{boxLabel:'单选二',inputValue:'22'},
{boxLabel:'单选三',inputValue:'23'},
]
}]

}
var form=new Ext.form.FormPanel(config);
});

</script>


...全文
223 4 打赏 收藏 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
SteveGua 2015-04-05
  • 打赏
  • 举报
回复
应该是在单选多选项下加

checkboxToggle:true,
zl_dsj 2015-04-03
  • 打赏
  • 举报
回复
defaultType:'checkbox', -----应该是'checkboxgroup'吧
qilinno 2015-04-02
  • 打赏
  • 举报
回复
给"title:'附加实验',"加上checkboxToggle:true, ?
xuchaodhcc 2015-04-02
  • 打赏
  • 举报
回复
把第一个defaultType:'checkbox', 去掉试试

87,984

社区成员

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

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