Is possible to select one, some or all COLUMNS for a datatable?
Is possible to select one, some or all COLUMNS for a datatable?
asukittta
Posts: 4Questions: 1Answers: 0
I've found some examples with a check (selector) for each row, but not for the datatable columns or a range of columns. Is it possible?
Replies
... gets them all.
https://datatables.net/reference/api/columns()
One option is to create a second
thead
for the checkboxes and useorderCellsTop
to move the sorting click event handlers to the top row. Create an event handler for the checkboxes then usecolumn().select()
orcolumn().deselect()
based on the checked state of the checkbox.Kevin