View as Markdown

API reference: @salmonui/data-grid/engine

ColumnsSetPinningCommandtype

import type { ColumnsSetPinningCommand } from '@salmonui/data-grid/engine';
type ColumnsSetPinningCommand = {
    readonly type: 'columns.setPinning';
    readonly freeze: Readonly<Record<ColumnId, ColumnFreeze | null>>;
    readonly frozenCount: {
        readonly left?: number;
        readonly right?: number;
    };
};

Replaces the runtime pin state as a whole (freeze overrides and counts) without moving columns; state restore uses it. Unknown ids are dropped.

ColumnsSetPinningCommand members (3)
NameSignatureDescription
typereadonly type: 'columns.setPinning';
freezereadonly freeze: Readonly<Record<ColumnId, ColumnFreeze | null>>;
frozenCountreadonly frozenCount: { readonly left?: number; readonly right?: number; };