根据Webix中的复选框值编辑true/false

Edit true/false depending on the checkbox value in Webix

本文关键字:编辑 true false 复选框 Webix 根据      更新时间:2023-09-26

我创建了一个带有复选框列的可编辑Webix数据表。

想知道如何根据复选框的值将edit函数设置为数据表行?也许,我应该使用

$$("dataTable").attachEvent("onBeforeEditStart", function(. . .){. . .});

但我有点困惑我到底需要写什么。下面是片段。

它通过简单的逻辑工作:

function(id){
  if(this.getItem(id).ch1){
      return true;
  }
  return false;
}

检查此项:http://webix.com/snippet/098c09dd