Open WillYouth opened 2 years ago
@exptom or @mpryvkin can help with this issue? Thanks!
you can add selectCallback to your tabel. Something like this
checkboxes: {
selectRow: true,
selectCallback: function(nodes, selected){
console.log(nodes);
if(selected) {
$('input[type="checkbox"]', nodes).prop('checked', true);
} else {
$('input[type="checkbox"]', nodes).prop('checked', false);
}
}
}
Hi I wish to know how can I get my checkbox status when rendered checkboxes in table. I already create the table using html with checkbox status. But after initialize using this plugin, the checkbox status are all cleared.
Before:
<input type="checkbox" name="items[]" checked="" value="312">
After:<input type="checkbox" class="dt-checkboxes" autocomplete="off">
Thanks a lot for the help