我正在尝试将 masterCheckbox 添加到 webix 数据表项目中。现在,我得到以下行为:当我单击主复选框时,值重写为 1 或 0
{
id:"title",
checkValue:"on",
uncheckValue:"off",
template:"{common.checkbox()} #title#",
header:["Title", {content:"masterCheckbox", contentId:"checkAll"}],
fillspace:true
}
http://webix.com/snippet/26750201 http://webix.com/snippet/26750201
阿比知道我做错了什么吗?
我发现的 masterCheckbox 的唯一示例是这个样本 http://docs.webix.com/samples/15_datatable/04_editing/16_master_checkbox.html.
似乎 masterCheckbox 改变了value在当前列中。 IE。在你的样本中title
变成on
or off
。我想提供的用例是有一个单独的列{common.checkbox()}
:
columns:[
{ id:"ch1", header:{ content:"masterCheckbox", contentId:"mc1" }, template:"{common.checkbox()}", width:40}
],
Sample: http://webix.com/snippet/17a28a40 http://webix.com/snippet/17a28a40
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)