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

> The PersistedPinning type of @salmonui/data-grid/engine: Runtime pin state (the pinnedColumns counts and per-column pins made at runtime, pinColumn). Columns are referenced by field (id when there is none); null unpins a column that declares pinned.

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

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

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

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

```ts
type PersistedPinning = {
    readonly start: number;
    readonly end: number;
    readonly columns: Readonly<Record<string, 'start' | 'end' | 'center' | null>>;
};
```

Runtime pin state (the `pinnedColumns` counts and per-column pins made at
runtime, `pinColumn`). Columns are referenced by field (id when there is
none); `null` unpins a column that declares `pinned`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: number;` |  | Count of leading visible columns pinned to the start. |
| `end` | `readonly end: number;` |  | Count of trailing visible columns pinned to the end. |
| `columns` | `readonly columns: Readonly<Record<string, 'start' \| 'end' \| 'center' \| null>>;` |  |  |
