View as Markdown

API reference: @salmonui/data-grid/engine

ChildGridDescriptorinterface

import type { ChildGridDescriptor } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/hierarchy.

interface ChildGridDescriptor<Child = unknown> {
    readonly id: string;
    readonly parentRowId: RowId;
    readonly depth: number;
    readonly relation: ChildRelation;
    readonly filter: FilterDescriptor;
    readonly dataSource: DataSource<Child>;
    readonly options: DataGridOptions<Child>;
}
ChildGridDescriptor members (7)
NameSignatureDescription
idreadonly id: string;

<parent grid id>/<parent row id>.

parentRowIdreadonly parentRowId: RowId;
depthreadonly depth: number;

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

relationreadonly relation: ChildRelation;
filterreadonly filter: FilterDescriptor;

The relation condition the scoped source applies.

dataSourcereadonly dataSource: DataSource<Child>;
optionsreadonly options: DataGridOptions<Child>;

Complete options for the child engine, without modules.