# runExport (@salmonui/data-grid/engine/export)

> The runExport function of @salmonui/data-grid/engine/export: Runs one export: onBeforeExport, the model from the source and options, the writer, then onExport. Resolves to null when prevented.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-export/runExport

```ts
import { runExport } from '@salmonui/data-grid/engine/export';
```

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

## Reference

Kind: function

```ts
function runExport<Row, Data>(format: ExportFormat, source: ExportSource<Row> | readonly ExportSource<Row>[], options: ExportOptions<Row> | undefined, handlers: ExportHandlers<Row, Data>, extension: string, mimeType: string, write: (models: readonly ExportModel<Row>[]) => Promise<Data>): Promise<ExportFile<Data> | null>;
```

Runs one export: `onBeforeExport`, the model from the source and options,
the writer, then `onExport`. Resolves to null when prevented.
