please let me know how to use code to cancel, clear all of checkbox on DataTable. not show in KTUI guide.
Thank you
Hi Xin Yu
After the table is initialised, get the instance and call uncheck():
const tableEl = document.querySelector("#your_datatable");
const datatable = KTDataTable.getInstance(tableEl);
if (datatable) {
datatable.uncheck();
} const datatable = new KTDataTable(tableEl, {
checkbox: { preserveSelection: false },
// ...your other options
});
// later, to clear all:
datatable.uncheck();