# RowDragSession (@salmonui/data-grid/engine)

> The RowDragSession interface of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/RowDragSession

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

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

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
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;
}
```

Members (7):

| Name | Signature | Flags | 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;` |  |  |
