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

> The ChildGridDescriptor interface of @salmonui/data-grid/engine.

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

```ts
import type { ChildGridDescriptor } 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 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>;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | `<parent grid id>/<parent row id>`. |
| `parentRowId` | `readonly parentRowId: RowId;` |  |  |
| `depth` | `readonly depth: number;` |  | Depth of the child grid (1 for children of the root). |
| `relation` | `readonly relation: ChildRelation;` |  |  |
| `filter` | `readonly filter: FilterDescriptor;` |  | The relation condition the scoped source applies. |
| `dataSource` | `readonly dataSource: DataSource<Child>;` |  |  |
| `options` | `readonly options: DataGridOptions<Child>;` |  | Complete options for the child engine, without modules. |
