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;
};
| Name | Signature | Description |
|---|---|---|
getChildGrid | getChildGrid(ctx: ModuleContext<Row>, parentRowId: RowId): ChildGridDescriptor | undefined; | Child grid of a visible parent row; stable identity while the parent row object is unchanged. |
describeChildGrid | describeChildGrid(ctx: ModuleContext<Row>, parentRowId: RowId, row: Row): ChildGridDescriptor | undefined; | Child grid of any parent row, visible or not (export and print of every
page, |