Deselect cells from a selected range of table rows
Deselect cells from a selected range of table rows
Hi team,
I have created a select all functionality that selects all table rows using the code below:
$.fn.dataTable.ext.buttons.All = {
text: 'All',
extend: 'selectAll',
className:'fred',
action: function ()
{
table.rows().select();
}
};
Now, I want to deselect one cell. I tried to use the 'selector' but it does not run properly:
select: {
style: 'multi',
selector: 'select-enabled'
}
Is there any other way to manage it?
Thank you
Answers
To deselect a single cell, control click on it.
Or if you want to do it via the API use
row().deselect()
providing a suitable selector for your row torow()
.Allan