View as Markdown

API reference: @salmonui/data-grid/engine

RowDragSessioninterface

import type { RowDragSession } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/row-drag-drop.

interface RowDragSession {
    readonly id: number;
    readonly token: string | null;
    readonly external: boolean;
    readonly rowIds: readonly RowId[];
    readonly fromIndexes: readonly number[];
    readonly fromIndex: number;
    readonly over: DropTarget | null;
}
RowDragSession members (7)
NameSignatureDescription
idreadonly id: number;
tokenreadonly token: string | null;

Handoff token (cross-grid), or null.

externalreadonly external: boolean;

True when the rows come from another grid.

rowIdsreadonly rowIds: readonly RowId[];

Dragged rows in visible order.

fromIndexesreadonly fromIndexes: readonly number[];

Data row indexes of the dragged rows (ascending; -1 for rows not in the view). Empty for external drags.

fromIndexreadonly fromIndex: number;

The first dragged row's data row index.

overreadonly over: DropTarget | null;