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

> The RowDragReorderCommand type of @salmonui/data-grid/engine/row-drag-drop: reorderRows(fromIndexes, toIndex): data row indexes of the current view; the rows are removed and inserted so the first one ends at data index toIndex (clamped).

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

```ts
import type { RowDragReorderCommand } 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 RowDragReorderCommand = {
    type: 'rowDragDrop.reorder';
    fromIndexes: number[];
    toIndex: number;
};
```

`reorderRows(fromIndexes, toIndex)`: data row indexes of the
current view; the rows are removed and inserted so the first one ends at
data index `toIndex` (clamped).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'rowDragDrop.reorder';` |  |  |
| `fromIndexes` | `fromIndexes: number[];` |  |  |
| `toIndex` | `toIndex: number;` |  |  |
