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

> The RowPinningSetCommand type of @salmonui/data-grid/engine/row-pinning: Replaces the explicit pins and unpins (state restore).

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

```ts
import type { RowPinningSetCommand } 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: type

```ts
type RowPinningSetCommand = {
    type: 'rowPinning.set';
    pinned: RowId[];
    unpinned?: RowId[];
};
```

Replaces the explicit pins and unpins (state restore).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'rowPinning.set';` |  |  |
| `pinned` | `pinned: RowId[];` |  |  |
| `unpinned` | `unpinned?: RowId[];` | optional |  |
