# pinned

Pins the column left/right, or unpins it with null.

Canonical: https://grid.syidax.com/docs/columns/pinned/

<a id="meaning"></a>

## What does this API do?

Pins the column left/right, or unpins it with null.

<a id="contract"></a>

## Exact input and result types

```typescript
pinned?: 'left' | 'right' | null
```

| Item | Value |
| --- | --- |
| Required | Optional |
| Input type | 'left' \| 'right' \| null |

<a id="usage"></a>

## Usage flow

Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [Column sizing and pinning](https://grid.syidax.com/docs/features/column-operations.md) — Width, order, pinning, and visibility are independent column states. Combine them to pin order IDs, hide supporting information, and widen long product names.
