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

> The RowDragHandoff interface of @salmonui/data-grid/engine: Caller-owned registry shared by grids that drag rows between each other (rowDragDrop.handoff).

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

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

Also exported from `@salmonui/data-grid`, `@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 RowDragHandoff {
    begin(payload: Omit<RowDragPayload, 'token'>, onDropped: (targetGridId: string) => void): string;
    get(token: string): RowDragPayload | undefined;
    complete(token: string, targetGridId: string): void;
    cancel(token: string): void;
}
```

Caller-owned registry shared by grids that drag rows between each other (`rowDragDrop.handoff`).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `begin` | `begin(payload: Omit<RowDragPayload, 'token'>, onDropped: (targetGridId: string) => void): string;` |  |  |
| `get` | `get(token: string): RowDragPayload \| undefined;` |  |  |
| `complete` | `complete(token: string, targetGridId: string): void;` |  | The target grid accepted the rows. |
| `cancel` | `cancel(token: string): void;` |  |  |
