# ExportCellPatch (@salmonui/core/export-model)

> The ExportCellPatch interface of @salmonui/core/export-model: 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.

Canonical: https://salmonui.dev/docs/reference/core/export-model/ExportCellPatch

```ts
import type { ExportCellPatch } from '@salmonui/core/export-model';
```

Entry index: https://salmonui.dev/docs/reference/core/export-model (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/export-model.md).

## Reference

Kind: interface

```ts
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.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value?: unknown;` | optional |  |
| `text` | `readonly text?: string;` | optional |  |
| `style` | `readonly style?: ExportCellStyle;` | optional |  |
| `formula` | `readonly formula?: string;` | optional | XLSX formula (with or without the leading `=`). Security: runs when the workbook opens; never build it from untrusted input. |
| `colSpan` | `readonly colSpan?: number;` | optional |  |
| `rowSpan` | `readonly rowSpan?: number;` | optional |  |
| `image` | `readonly image?: ExportImage;` | optional | 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 `text: ''`); PDF draws it in the cell box, scaled to fit. Rows grow to the image height. CSV writes the text. |
