View as Markdown

API reference: @salmonui/data-grid

DataGridChildGridParentinterface

import type { DataGridChildGridParent } from '@salmonui/data-grid';
interface DataGridChildGridParent<Parent> {
    readonly rowId: RowId;
    readonly row: Parent;
    readonly depth: number;
}

The parent row a child grid belongs to (factory form of childGrid.data).

DataGridChildGridParent members (3)
NameSignatureDescription
rowIdreadonly rowId: RowId;
rowreadonly row: Parent;
depthreadonly depth: number;

Depth of the child grid (1 for children of the root grid).