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
attributes [targets] and [orderable]
actually what they do.

Here is a sample code.

"targets":[0, 3, 4],

Answer Source

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