View as Markdown

API reference: @salmonui/data-grid/engine

ColumnsMoveCommandtype

import type { ColumnsMoveCommand } from '@salmonui/data-grid/engine';
type ColumnsMoveCommand = {
    readonly type: 'columns.move';
    readonly columnId: ColumnId;
    readonly toIndex: number;
};

Moves a leaf so that its index among the visible leaves becomes toIndex. Rejected when the move crosses a freeze zone (crossesFreezeZone), moves a lockColumn column, or places a column before a locked one (columnLocked).

ColumnsMoveCommand members (3)
NameSignatureDescription
typereadonly type: 'columns.move';
columnIdreadonly columnId: ColumnId;
toIndexreadonly toIndex: number;