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

> The createExportModelFromContext function of @salmonui/data-grid/engine/export: Builds the export model from a module context. For renderers that load the export code on demand: they register a context-only module up front (no export code in the default bundle) and pass its context here later.

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

```ts
import { createExportModelFromContext } 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 createExportModelFromContext<Row>(ctx: ModuleContext<Row>, options?: ExportModelOptions<Row>): ExportModel<Row>;
```

Builds the export model from a module context. For renderers that load the
export code on demand: they register a context-only module up front (no
export code in the default bundle) and pass its context here later.
