# createSelectionApi (@salmonui/data-grid/engine)

> The createSelectionApi function of @salmonui/data-grid/engine: Selection methods over an engine with the selection module (spread into the DataGrid API).

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

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

Also exported from `@salmonui/data-grid/engine/selection`.

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

## Reference

Kind: function

```ts
function createSelectionApi<Row>(engine: DataGridEngine<Row>): SelectionApi<Row>;
```

Selection methods over an engine with the `selection` module (spread into the DataGrid API).
