Skip to content

ExcelStyleConfig

Since v2.0.0

Configuration for styled Excel export.

Controls header styles, per-column and per-cell formatting, column widths, and auto-fit behavior in Excel XML output.

PropertyTypeDescription
headerStyle?ExcelCellStyleStyle applied to all header cells
groupHeaderStyle?ExcelCellStyleStyle applied to cells in plugin-contributed header rows (e.g. the column-group header row). Falls back to headerStyle when omitted. v2.10.0+
defaultStyle?ExcelCellStyleDefault style for all data cells
columnStyles?Record<string, ExcelCellStyle>Per-column style overrides (keyed by field name)
cellStyle?(value: unknown, field: string, row: unknown) => ExcelCellStyle | undefinedCallback for per-cell dynamic styling
columnWidths?Record<string, number>Column width overrides in characters (keyed by field name)
autoFitColumns?booleanAuto-fit column widths based on content (default: false)
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt