佐佑科技

CheckBox(复选框)

使用$.fn.iCheckbox.defaults重写默认值对象。


•   没有依赖


通过标签创建文本框。

                    

使用Javascript创建复选框。

                   $('#ck').iCheckbox({
                        label: 'Apple:',
                        value: 'Apple',
                        checked: true
                    });
        
属性名 属性值类型 描述 默认值
width number 组件的宽度。 20
height number 组件的高度。 20
value string 默认值。 null
checked boolean 定义是否选中。 false
disabled boolean 定义是否禁用组件。 false
label string 绑定标签值。 null
labelWidth number 标签宽度。 auto
labelPosition string 标签位置。可选值:'before','after','top'。 before
labelAlign string 标签对齐。可选值:'left','right'。 left

事件名 事件参数 描述
onChange checked 组件值改变时触发。

方法名 方法参数 描述
options none 返回属性对象。
setValue value 设置复选框的值。
disable none 禁用组件。
enable none 启用组件。
check none 选中组件。
uncheck none 取消选中组件。
clear none 清空选中值。
reset none 重置选中值。
联系我们
手机/微信
18973127736
办公电话
0731-89565588