# AddedTreePlacement (@salmonui/data-grid/engine/edit)

> The AddedTreePlacement interface of @salmonui/data-grid/engine/edit: Where a tree-mode added row goes (getAddedTreePlacement).

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

```ts
import type { AddedTreePlacement } from '@salmonui/data-grid/engine/edit';
```

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

## Reference

Kind: interface

```ts
interface AddedTreePlacement {
    readonly position: 'above' | 'below' | 'child';
    readonly anchorId: RowId;
    readonly parentId: RowId | null;
}
```

Where a tree-mode added row goes (`getAddedTreePlacement`).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `position` | `readonly position: 'above' \| 'below' \| 'child';` |  |  |
| `anchorId` | `readonly anchorId: RowId;` |  | The row the position is relative to. |
| `parentId` | `readonly parentId: RowId \| null;` |  | The parent the added row joins (null: a root). |
