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" } ] }
]
}
]
});
workbook.toDataURLAsync().then(function(dataURL) {
kendo.saveAs({
dataURI: dataURL,
fileName: "Test.xlsx"
});
});
</script>