0
我正在嘗試創建一個已選中的複選框。我無法找到所需的文檔來創建它。 JS函數的輸入是單元格。之後我不確定該怎麼做。無法在DHTMLX中創建複選框
這裏是我的代碼至今:
function eXcell_includeRC(cell) {
try {
this.cell = cell;
this.grid = this.cell.parentNode.grid;
var cbvalue = regExpGetValueCell;
if (cbvalue = 'Y') {
//add something to show a checked checkbox
} else {
//add somethig to add an unchecked checkbox
}
} catch(error){
alert (error.toSource());
}
return "false";
};
這我在哪裏卡住了。我檢查了下面的鏈接。 http://docs.dhtmlx.com/grid__basic_operations.html#grid
但在那裏給出的選項不工作。
感謝您的鏈接。這真的很有幫助。我嘗試了這樣的東西,但沒有出現在屏幕上 –
不知何故,我無法添加我的新代碼。我怎麼做。評論說得太久了。 –
解決方案的例子在這裏:http://stackoverflow.com/questions/37924810 – sematik