View as Markdown

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).

AddedTreePlacement members (3)
NameSignatureDescription
positionreadonly position: 'above' | 'below' | 'child';
anchorIdreadonly anchorId: RowId;

The row the position is relative to.

parentIdreadonly parentId: RowId | null;

The parent the added row joins (null: a root).