I need to recalculate the table by calling recal
after a row was selected by check box. If it is selected by clicking the row calling recal
works. I copied the below code from plugin site
{formatter:"rowSelection", titleFormatter:"rowSelection", hozAlign:"center", headerSort:false, cellClick:function(e, cell){
console.log("table ",table);
// cell.getRow().toggleSelect();
console.log("table ",table);
table.recalc();
}},
but nothing gets executed. The checkbox gets checked and the row highlighted. You can try my jsFiddle.
UPDATE 1 so it works if I click off the checkbox but I want the function to be triggered when the checkbox is clicked.
from Tabulator.js: cellClick callback is not fired when clicking a checkbox
No comments:
Post a Comment