API reference: @salmonui/data-grid/engine/edit
AddedTreePlacementinterface
import type { AddedTreePlacement } from '@salmonui/data-grid/engine/edit';interface AddedTreePlacement {
readonly position: 'above' | 'below' | 'child';
readonly anchorId: RowId;
readonly parentId: RowId | null;
}
Where a tree-mode added row goes (getAddedTreePlacement).
| Name | Signature | 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). |