hide sort icon when col orderable=false
hide sort icon when col orderable=false
zielot
Posts: 2Questions: 1Answers: 0
Hi folks,
The first column of my table is a checkbox with no column label and no visible data. I would like to hide the sort arrow because it essentially doubles the width of the column. How can i do this?
~ Justin
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
https://datatables.net/reference/option/columns.orderable
See especially the comment at foot of that page.
Found it - needed to tell DataTables to start by ordering the second column instead of the first with the order initialization property:
"order": [[1, 'asc']]