Extjs菜鸟入门问题求解

SteveGua SteveGua 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
目标如图:

但是只能做到:

单选多选上面的复选框是怎么设置出来的呢!!
  <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>


...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
SteveGua
JavaScript 87,983 成员 224,681 内容