API reference: @salmonui/data-grid/engine
HierarchyOptionsinterface
import type { HierarchyOptions } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/hierarchy.
interface HierarchyOptions<Child = unknown, Row = unknown, Nested = unknown> {
readonly childGrid?: ChildGridConfig<Child, Row, Nested>;
readonly depth?: number;
}
options.hierarchy: Child is the first-level child row type, Row the grid's row type.
| Name | Signature | Description |
|---|---|---|
childGridoptional | readonly childGrid?: ChildGridConfig<Child, Row, Nested>; | |
depthoptional | readonly depth?: number; | Nesting depth of this grid (0 for the root). Set on child options. |