# HierarchyOptions (@salmonui/data-grid/engine)

> The HierarchyOptions interface of @salmonui/data-grid/engine: options.hierarchy: Child is the first-level child row type, Row the grid's row type.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/HierarchyOptions

```ts
import type { HierarchyOptions } from '@salmonui/data-grid/engine';
```

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

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
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.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `childGrid` | `readonly childGrid?: ChildGridConfig<Child, Row, Nested>;` | optional |  |
| `depth` | `readonly depth?: number;` | optional | Nesting depth of this grid (0 for the root). Set on child options. |
