View as Markdown

API reference: @salmonui/data-grid/engine/row-drag-drop

RowDragMoveCommandtype

import type { RowDragMoveCommand } from '@salmonui/data-grid/engine/row-drag-drop';
type RowDragMoveCommand = {
    type: 'rowDragDrop.move';
    rowIds: RowId[];
    targetRowId: RowId | null;
    position: 'before' | 'after' | 'into';
};

Programmatic reorder. into (tree mode) makes the rows the last children of the target.

RowDragMoveCommand members (4)
NameSignatureDescription
typetype: 'rowDragDrop.move';
rowIdsrowIds: RowId[];
targetRowIdtargetRowId: RowId | null;
positionposition: 'before' | 'after' | 'into';