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;
}
| Name | Signature | Description |
|---|---|---|
id | readonly id: number; | |
token | readonly token: string | null; | Handoff token (cross-grid), or null. |
external | readonly external: boolean; | True when the rows come from another grid. |
rowIds | readonly rowIds: readonly RowId[]; | Dragged rows in visible order. |
fromIndexes | readonly fromIndexes: readonly number[]; | Data row indexes of the dragged rows (ascending; -1 for rows not in the view). Empty for external drags. |
fromIndex | readonly fromIndex: number; | The first dragged row's data row index. |
over | readonly over: DropTarget | null; |