datatable center selected colums 1 2 3 code example
Example: server side datatable text center
'columnDefs': [
{
"targets": 0, // your case first column
"className": "text-center",
"width": "4%"
},
{
"targets": 2,
"className": "text-right",
}],