Part of my code:
function listaProjetos(){
$('#datatable').DataTable({
///////////////
"columnDefs": [
{ "orderData": 1, "targets": 0 },
{ "orderData": [2, 1], "targets": 1 },
],
///////////////
Basically, I need to change the column AÇÃO, to remove the arrows, and remove the function where clicking on the name will will sort the table.
However, I can't use the function:
{ "orderable": false, "targets": 2 }
I tried to use this to make the column "AÇÃO" not have an arrow anymore, but that meant the function { "orderData": [2, 1], "targets": 1 }, stops working, because column 1 needs column 2 to work.
There is another way to make sure only the first two columns will be sortable? Will I have to use CSS?