I've modified a cell on a datatable to show a coloured div which is a gradient depending on score
{
"data": "fert_percent",
"autoWidth": true,
"searchable": true,
"render": function (data, type, row, meta)
{
var ret = "<div class='col' style='background-color: lawngreen;'><div class='col' style='background-color: red; opacity: " + (data / 100) + ";'> </div></div>";
return ret;
}
},
The code works fine viewing the table but if I export to PDF, the cell is empty.
How can I make the exported PDF show the modified cell?

