How to apply different class for each column in Jquery data tables. I have tried using some properties in column definitions
$('#asset-table').DataTable({.....
"columns": [
{
"name": "claimNum",
"title": "Claim#",
"width": "11%",
"type": "string",
"data": "claimNum",
"visible": assetDisplayColumns.indexOf("claimNum") != -1
},
{
"name": "salvor",
"title": "Salvage Provider",
"width": "5%",
"type": "string",
"data": "salvor",
"visible": assetDisplayColumns.indexOf("salvor") != -1
},.....
It worked using columsDefs property for each columns
You can apply the multiple classes to single column in this e.g i have add class datatable header and datable body.