CellOptions
The options for the Excel Export cell.
background?
string
Sets the background color of the cell. Supports hex CSS-like values that start with "#"
. For example, "#ff00ff"
.
bold?
boolean
If set to true
, renders the cell value in bold.
borderBottom?
The style information for the bottom border of the cell.
borderLeft?
The style information for the left border of the cell.
borderRight?
The style information for the right border of the cell.
borderTop?
The style information for the top border of the cell.
color?
string
The text color of the cell. Supports hex CSS-like values that start with "#"
. For example, "#ff00ff"
.
fontFamily?
string
Sets the font that is used to display the cell value.
fontSize?
number
Sets the font size in pixels.
format?
string
Sets the format that Excel uses to display the cell value. For more information, refer to the page on supported Excel formats.
italic?
boolean
If set to true
, renders the cell value in italics.
textAlign?
"left" | "center" | "right"
Sets the horizontal alignment of the cell value.
The supported values are:
"left"
"center"
"right"
underline?
boolean
If set to true
, underlines the cell value.
verticalAlign?
"top" | "center" | "bottom"
Sets the vertical alignment of the cell value.
The supported values are:
"top"
"center"
"bottom"
wrap?
boolean
If set to true
, wraps the cell value.