# TreeViewBeforeMoveEvent (@salmonui/navigation/tree-view)

> The TreeViewBeforeMoveEvent interface of @salmonui/navigation/tree-view.

Canonical: https://salmonui.dev/docs/reference/navigation/tree-view/TreeViewBeforeMoveEvent

```ts
import type { TreeViewBeforeMoveEvent } from '@salmonui/navigation/tree-view';
```

Entry index: https://salmonui.dev/docs/reference/navigation/tree-view (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/navigation/tree-view.md).

## Reference

Kind: interface

```ts
interface TreeViewBeforeMoveEvent<T> extends TreeViewCancelableEvent {
    readonly ids: readonly TreeViewKey[];
    readonly items: readonly T[];
    readonly targetId: TreeViewKey;
    readonly position: TreeViewDropPosition;
    readonly sourceTreeId: string | undefined;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `ids` | `readonly ids: readonly TreeViewKey[];` |  |  |
| `items` | `readonly items: readonly T[];` |  |  |
| `targetId` | `readonly targetId: TreeViewKey;` |  |  |
| `position` | `readonly position: TreeViewDropPosition;` |  |  |
| `sourceTreeId` | `readonly sourceTreeId: string \| undefined;` |  | The `id` of the tree the items come from when it is another tree of the same `dragGroup`. |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `source` | `source: TreeViewEventSource;` | inherited |  |
