How to render data with custom tag
How to render data with custom tag
tony_ynot
Posts: 1Questions: 1Answers: 0
Hi All,
Is it anyway to render the column using custom tag or JSTL tag ?
"columnDefs": [
{
"targets": [ 0, 1 ],
"render" : function ( data, type, row ) {
var renderer = '';
renderer += '<a href="view?msgId='+ row.msgId+'">' + data + '</a>';
return renderer;
}
},
{
"targets": 5,
"searchable": false,
"orderable": false,
"type" : "html",
"render" : function ( data, type, row ) {
var renderer = '<utility:displayStatus value="'+ data+'" />';
console.log(renderer)
return renderer;
}
},
There is no problem in rendering the normal html tag, but dataTables seem like not able to render a custom tag.
This discussion has been closed.