sheets.rows.cells.textAlign String
Sets the horizontal alignment of the cell content.
The supported values are:
"left"
"center"
"right"
Example - setting the horizontal alignment
<script>
var workbook = new kendo.ooxml.Workbook({
sheets: [
{
columns: [ { width: 200 } ],
rows: [
{ cells: [ { value: "Left", textAlign: "left" } ] },
{ cells: [ { value: "Center", textAlign: "center" } ] },
{ cells: [ { value: "Right", textAlign: "right" } ] }
]
}
]
});
kendo.saveAs({
dataURI: workbook.toDataURL(),
fileName: "Test.xlsx"
});
</script>