# ListboxReorderEvent (@salmonui/dropdowns/listbox)

> The ListboxReorderEvent interface of @salmonui/dropdowns/listbox: onReorder argument: the application applies it to its data (reorderItems / moveItems).

Canonical: https://salmonui.dev/docs/reference/dropdowns/listbox/ListboxReorderEvent

```ts
import type { ListboxReorderEvent } from '@salmonui/dropdowns/listbox';
```

Entry index: https://salmonui.dev/docs/reference/dropdowns/listbox (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/dropdowns/listbox.md).

## Reference

Kind: interface

```ts
interface ListboxReorderEvent<T> {
    readonly values: readonly ListboxKey[];
    readonly items: readonly T[];
    readonly toIndex: number;
    readonly delta: number | null;
    readonly source: ListboxEventSource;
}
```

`onReorder` argument: the application applies it to its `data` (`reorderItems` / `moveItems`).

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `values` | `readonly values: readonly ListboxKey[];` |  |  |
| `items` | `readonly items: readonly T[];` |  |  |
| `toIndex` | `readonly toIndex: number;` |  | Insertion index in the current `data` (before the moved items are removed), as `moveItems` takes it. |
| `delta` | `readonly delta: number \| null;` |  | `-1` / `1` for a keyboard step (Alt+Up / Alt+Down), as `reorderItems` takes it. |
| `source` | `readonly source: ListboxEventSource;` |  |  |
