API reference: @salmonui/data-grid/engine
PersistedPinningtype
import type { PersistedPinning } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/persistence.
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.
| Name | Signature | 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>>; |