Skip to content

ExcelStyleConfig

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
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://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt