View as Markdown

API reference: @salmonui/data-grid/engine

HierarchyMethodstype

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

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

type HierarchyMethods<Row> = {
    getChildGrid(ctx: ModuleContext<Row>, parentRowId: RowId): ChildGridDescriptor | undefined;
    describeChildGrid(ctx: ModuleContext<Row>, parentRowId: RowId, row: Row): ChildGridDescriptor | undefined;
};
HierarchyMethods members (2)
NameSignatureDescription
getChildGridgetChildGrid(ctx: ModuleContext<Row>, parentRowId: RowId): ChildGridDescriptor | undefined;

Child grid of a visible parent row; stable identity while the parent row object is unchanged.

describeChildGriddescribeChildGrid(ctx: ModuleContext<Row>, parentRowId: RowId, row: Row): ChildGridDescriptor | undefined;

Child grid of any parent row, visible or not (export and print of every page, hierarchy: 'all'). Not cached: the caller owns the descriptor.