API reference: @salmonui/core/export-model
ExportCellinterface
import type { ExportCell } from '@salmonui/core/export-model';interface ExportCell {
readonly value: unknown;
readonly text: string;
readonly type: ColumnType;
readonly style?: ExportCellStyle;
readonly formula?: string;
readonly colSpan?: number;
readonly rowSpan?: number;
readonly image?: ExportImage;
}
One exported cell. value is the typed value (numbers, booleans, Date, strings), text the display string.
| Name | Signature | Description |
|---|---|---|
value | readonly value: unknown; | |
text | readonly text: string; | |
type | readonly type: ColumnType; | |
styleoptional | readonly style?: ExportCellStyle; | |
formulaoptional | readonly formula?: string; | XLSX formula without the leading |
colSpanoptional | readonly colSpan?: number; | |
rowSpanoptional | readonly rowSpan?: number; | |
imageoptional | readonly image?: ExportImage; | Image drawn in the cell; |