Trying to convert aoColumns to new 1.10.x version
Trying to convert aoColumns to new 1.10.x version
Im trying to convert the following
"aoColumns": [
{
"sName": "Guid",
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj) {
return "<a id='" + oObj.aData[0] + "' class='form-guid-link' href='#'>Add</a>";
}
},
null
]
But no matter what new syntax I try I cant seem to get it to work.
It simply get the returned Guid and creates a link in its place.
Ive been trying something along these lines but the help isn't that helpful.
"columns": [
{
"targets": 0,
"render": function (data, type, row, meta) {
return "<a id='" + data[0] + "' href='#'>Add</a>";
}
},
{ "data": null }
]