XLSX formatting: number formats, styles, widths and frozen header
Applies number formats, header styling, column widths, text wrap and a frozen header row to XLSX output. Per-cell style callbacks can mirror conditional formatting from the grid.
Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Sales grid with conditional red styling on negative margins.
Expected behavior
The workbook reflects each choice. Negative margins are red when mirroring is on, and the header stays visible while scrolling in the spreadsheet tool.
Planned API surface
column.exportNumberFormatxlsx.headerStylexlsx.autoWidthcolumn.exportWidthxlsx.freezeHeaderexportCellStyle callbackxlsx.wrapTextAcceptance criteria
- exportNumberFormat strings are written as custom number formats. (pending)
- autoWidth computes widths from the longest rendered value, capped at a configurable maximum. (pending)
- freezeHeader creates a pane split below the last header row. (pending)
- exportCellStyle({row,column,value}) may return font, fill, border and alignment, all applied. (pending)
- Identical styles are de-duplicated in the style table. (pending)