sheets.rows.cells.hAlignString

Deprecated in versions 2015.3 and later. Use textAlign instead.

Example

<script>
var workbook = new kendo.ooxml.Workbook({
  sheets: [
      {
          rows: [
              { cells: [ 
                  { value: "Left", hAlign: "left" },
                  { value: "Center", hAlign: "center" },
                  { value: "Right", hAlign: "right" }
              ] }
          ]
      }
  ]
});

workbook.toDataURLAsync().then(function(dataURL) {
  kendo.saveAs({
    dataURI: dataURL,
    fileName: "horizontal-align-example.xlsx"
  });
});
</script>
In this article
sheets.rows.cells.hAlign
Not finding the help you need?
Contact Support