How to show an image in a DataTables column?
How to show an image in a DataTables column?
mnrafg
Posts: 2Questions: 2Answers: 0
Just take a look at the following code:
columns: [
{ data: 'status'},
{
render: function(data, type, row, meta) {
return $('<img>').attr('src', row.image).get(0);
}
}
]
While I load my webpage with the upper code it show [object HTMLImageElement]
in that column.
This discussion has been closed.
Answers
Hi @mnrafg ,
This thread here should help, it's discussing the same issue.
If that doesn't help, please could you link to a running test case showing the issue. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin