View as Markdown

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.

PersistedPinning members (3)
NameSignatureDescription
startreadonly start: number;

Count of leading visible columns pinned to the start.

endreadonly end: number;

Count of trailing visible columns pinned to the end.

columnsreadonly columns: Readonly<Record<string, 'start' | 'end' | 'center' | null>>;