Add background color to cells
tiagocostafdm opened this issue · 1 comments
tiagocostafdm commented
Is there a way to add background color to cells?
jw988 commented
Excel accepts background color only in <td>
tags:
json_fields: {
Field1: {
callback: (row) => {
return `<table><tr><td style="background-color: #F59E8F">${row.Field1}</td></tr></table>`;
},
},
},
text color is easier:
json_fields: {
Field1: {
callback: (row) => {
return `<span style="color: #F59E8F">${row.Field1}</span>`;
},
},
},