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

> The LocalDataSourceOptions interface of @salmonui/data-grid/engine.

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

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

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: interface

```ts
interface LocalDataSourceOptions<Row> {
    readonly getRowId?: (row: Row, index: number) => RowId;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `getRowId` | `readonly getRowId?: (row: Row, index: number) => RowId;` | optional | Required for `patch` upsert/remove and for `write`. The engine passes its own when it wraps an array. |
