# RowPinningOptions (@salmonui/data-grid/engine/row-pinning)

> The RowPinningOptions interface of @salmonui/data-grid/engine/row-pinning.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-row-pinning/RowPinningOptions

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

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

## Reference

Kind: interface

```ts
interface RowPinningOptions<Row> {
    readonly isRowPinned?: (row: Row) => boolean;
    readonly rowIds?: readonly RowId[];
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `isRowPinned` | `readonly isRowPinned?: (row: Row) => boolean;` | optional | Rows pinned by data. Evaluated once per row of a data array; a patch re-tests only the added and changed rows, so pinning follows CRUD. Must be pure. Read at engine creation. |
| `rowIds` | `readonly rowIds?: readonly RowId[];` | optional | Initially pinned row ids (besides `isRowPinned`). |
