sheets.rows.cells.color String
(default: null)
The text color of the cell. Supports hex CSS-like values that start with #
, for example, #ff00ff
.
Example - setting the cell text color
<script>
var workbook = new kendo.ooxml.Workbook({
sheets: [
{
rows: [
{ cells: [ { value: "red", color: "#ff0000" } ] }
]
}
]
});
workbook.toDataURLAsync().then(function(dataURL) {
kendo.saveAs({
dataURI: dataURL,
fileName: "Test.xlsx"
});
});
</script>