Is it possible to format the Ajax data before inserting it into the page using the DataTables sAjaxSource": "URL"?
I'm currently fettching the following JSON array:
{
"aaData": [
{
"Name": "Trident",
"Link": "http://google.com"
}
]
}
I can insert it into the Name and Link into the dataTable using:
var oTable = $('#example').dataTable({
"bProcessing": true,
"sAjaxSource": "sources/myData.json",
"sAjaxDataProp": "items",
"aoColumns": [
{ "mData": "Name" },
{"mData": "$Link" }
]
});
however, I want to insert it as a single Anchor element with the Text= Name and the href = Link. Is this possible?
PS: what have I tried: I looked throw the examples and searched with google but found nothing.