# RowDragMoveCommand (@salmonui/data-grid/engine/row-drag-drop)

> The RowDragMoveCommand type of @salmonui/data-grid/engine/row-drag-drop: Programmatic reorder. into (tree mode) makes the rows the last children of the target.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-row-drag-drop/RowDragMoveCommand

```ts
import type { RowDragMoveCommand } from '@salmonui/data-grid/engine/row-drag-drop';
```

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

## Reference

Kind: type

```ts
type RowDragMoveCommand = {
    type: 'rowDragDrop.move';
    rowIds: RowId[];
    targetRowId: RowId | null;
    position: 'before' | 'after' | 'into';
};
```

Programmatic reorder. `into` (tree mode) makes the rows the last children of the target.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'rowDragDrop.move';` |  |  |
| `rowIds` | `rowIds: RowId[];` |  |  |
| `targetRowId` | `targetRowId: RowId \| null;` |  |  |
| `position` | `position: 'before' \| 'after' \| 'into';` |  |  |
