首页 > 其他 > 详细

关于Ext checkboxfiled 获取值为 on的解决办法

时间:2015-06-20 01:29:00      阅读:238      评论:0      收藏:0      [点我收藏+]

今天在做Ext checkboxfield 为取值为on,应该是true或false,解决办法是把Name去掉,只设置ID即可

 1             {
 2                            xtype: "container",
 3                            layout: "hbox",
 4                            defaultType: "textfield",
 5                            margin: "5 15 5 15",
 6                            style: ‘text-align:right‘,
 7                            items: [
 8                                 {
 9                                     xtype: "checkboxfield",
10                                     //name: "Enabled",
11                                     id: ‘Enabled‘,//这里把ID去掉即可
12                                     fieldLabel: "是否可用",
13                                     boxLabel: "",
14                                     checked:true,
15                                     labelAlign: "right",
16                                     flex: 0.5
17                                 }]
18                      }

 

关于Ext checkboxfiled 获取值为 on的解决办法

原文:http://www.cnblogs.com/changsen-wang/p/4589968.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!