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.
| Name | Signature | Description |
|---|---|---|
type | readonly type: 'columns.setPinning'; | |
freeze | readonly freeze: Readonly<Record<ColumnId, ColumnFreeze | null>>; | |
frozenCount | readonly frozenCount: {
readonly left?: number;
readonly right?: number;
}; |