Majeed Majeed - 26 days ago 6
Javascript Question

How jQuery datatable attribute columnDefs work's?

I have confusion on

jQuery Datatables
, I saw few code where
datatables use columndefs
, I don't understand
columndefs
attributes [targets] and [orderable]
actually what they do.

Here is a sample code.

"columnDefs":[
{
"targets":[0, 3, 4],
"orderable":false,
},
],

Answer Source

In this particular case, ordering is disabled for columns with indexes 0,3 and 4