# DataGridExportHooks (@salmonui/data-grid)

> The DataGridExportHooks type of @salmonui/data-grid: Export hooks (per-cell, header cell, aggregate cell, group caption, detail).

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridExportHooks

```ts
import type { DataGridExportHooks } from '@salmonui/data-grid';
```

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

## Reference

Kind: type

```ts
type DataGridExportHooks<Row> = Pick<ExportHandlers<Row>, 'cell' | 'headerCell' | 'aggregateCell' | 'groupCaption' | 'detail'>;
```

Export hooks (per-cell, header cell, aggregate cell, group caption, detail).

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `cell` | `cell?: ((ctx: ExportCellHookContext<Row>) => void \| ExportCellPatch \| null \| undefined);` | optional, inherited | Per data cell. Not called when unset. |
| `headerCell` | `headerCell?: ((ctx: ExportHeaderCellHookContext<Row>) => void \| { readonly text?: string; readonly style?: ExportCellStyle; } \| null \| undefined);` | optional, inherited | Per header cell. |
| `aggregateCell` | `aggregateCell?: ((ctx: ExportAggregateCellHookContext) => void \| { readonly text?: string; readonly style?: ExportCellStyle; } \| null \| undefined);` | optional, inherited | Per aggregate cell (grid footer, group footer, group caption). |
| `groupCaption` | `groupCaption?: ((ctx: ExportGroupCaptionHookContext) => void \| string \| null \| undefined);` | optional, inherited | Group caption text. |
| `detail` | `detail?: ((ctx: ExportDetailContext<Row>) => void \| ExportDetail \| null \| undefined);` | optional, inherited | A detail block written after a data row (text lines or a child table), or null for none. |
