Trying to convert aoColumns to new 1.10.x version
Trying to convert aoColumns to new 1.10.x version
![wjhumphreys](https://secure.gravatar.com/avatar/7c8376b0c6809921b913bffbc1a4d946/?default=https%3A%2F%2Fvanillicon.com%2F7c8376b0c6809921b913bffbc1a4d946_200.png&rating=g&size=120)
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 }
]