API reference: @salmonui/core/export-model
ExportCellPatchinterface
import type { ExportCellPatch } from '@salmonui/core/export-model';interface ExportCellPatch {
readonly value?: unknown;
readonly text?: string;
readonly style?: ExportCellStyle;
readonly formula?: string;
readonly colSpan?: number;
readonly rowSpan?: number;
readonly image?: ExportImage;
}
Returned by the cell hook: any field replaces the computed one. A text
without value replaces the typed value too, so XLSX writes a text cell.
| Name | Signature | Description |
|---|---|---|
valueoptional | readonly value?: unknown; | |
textoptional | readonly text?: string; | |
styleoptional | readonly style?: ExportCellStyle; | |
formulaoptional | readonly formula?: string; | XLSX formula (with or without the leading |
colSpanoptional | readonly colSpan?: number; | |
rowSpanoptional | readonly rowSpan?: number; | |
imageoptional | readonly image?: ExportImage; | Image drawn in the cell: PNG or JPEG bytes with the display size
in px. XLSX anchors a picture to the cell (the text is still written
unless |