Order of columns in JQuery DataTable

1

I have a doubt (maybe basic, I do not know) with the order of the columns of DataTable . The thing is that I need to disable the option " ordering " in the last 4 columns of my DataTable Is that possible?

Beforehand, Greetings and thanks.

    
asked by Esteban Andres Valera Palma 10.10.2018 в 20:44
source

1 answer

0

Assuming you have 8 columns in total, you would do so:

$('#miTabla').dataTable({
  "columnDefs": [
    {
        orderable: false,
        targets: [4,5,6,7]
    }
  ]
);
    
answered by 10.10.2018 / 21:35
source