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.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
headerStyle? | ExcelCellStyle | Style applied to all header cells |
groupHeaderStyle? | ExcelCellStyle | Style 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? | ExcelCellStyle | Default 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 | undefined | Callback for per-cell dynamic styling |
columnWidths? | Record<string, number> | Column width overrides in characters (keyed by field name) |
autoFitColumns? | boolean | Auto-fit column widths based on content (default: false) |
Property Details
Section titled “Property Details”groupHeaderStyle
Section titled “groupHeaderStyle”Style applied to cells in plugin-contributed header rows (e.g. the
column-group header row). Falls back to headerStyle when omitted.
Use this to visually distinguish group/super headers from leaf headers (e.g. heavier weight, larger font, accent fill).