sheets.rows.cells.background String (default: null)

Sets the background color of the cell. Supports hex CSS-like values that start with #, for example, #ff00ff.

Example - setting the background color of the cell

<script>
var workbook = new kendo.ooxml.Workbook({
  sheets: [
      {
          rows: [
            { cells: [ { value: "Red", background: "#ff0000" } ] }
          ]
      }
  ]
});
workbook.toDataURLAsync().then(function(dataURL) {
  kendo.saveAs({
    dataURI: dataURL,
    fileName: "Test.xlsx"
  });
});
</script>
In this article