Like this I can return the value of the current row:
"columnDefs": [
{
"render": function (data, type, row) {
return data ;
},
What I am actually looking for is the name of the current column. I tried:
"columnDefs": [
{
"render": function (data, type, row) {
return column().name ;
},
But this did not work.