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

> The RowDragDropMethods type of @salmonui/data-grid/engine.

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

```ts
import type { RowDragDropMethods } 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: type

```ts
type RowDragDropMethods<Row> = {
    getPayload(ctx: ModuleContext<Row>): RowDragPayload<Row> | null;
    getSession(ctx: ModuleContext<Row>): RowDragSession | null;
    getEventArgs(ctx: ModuleContext<Row>): RowDragEventInfo<Row> | null;
};
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `getPayload` | `getPayload(ctx: ModuleContext<Row>): RowDragPayload<Row> \| null;` |  | The dragged rows (for drops on custom elements and `DataTransfer`), or null. |
| `getSession` | `getSession(ctx: ModuleContext<Row>): RowDragSession \| null;` |  |  |
| `getEventArgs` | `getEventArgs(ctx: ModuleContext<Row>): RowDragEventInfo<Row> \| null;` |  | Drag event argument fields for the current session, or null. |
