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" } ] }
          ]
      }
  ]
});
kendo.saveAs({
  dataURI: workbook.toDataURL(),
  fileName: "Test.xlsx"
});
</script>
In this article