Hi ,
I am using checkbox and render it as per below.
In UI, it works as checked but when I use getCheckedNodes, it returns null value.
(All checked in checkbox in UI but no return for getCheckedNodes)
Am i missing something here?
render: function (ui) {
const cards = $this.variables.vSetIDs ?? [];
let checked = '';
if (ui.cellData == null) {
//init
if (cards.includes(ui.rowData.cardid)) {
checked = 'checked';
}
}
else {
if (ui.cellData) {
checked = 'checked';
}
}
return {
text: "<label><input type='checkbox' " + checked + "/></label>"
}
}