# DataGridTreeContext (@salmonui/data-grid)

> The DataGridTreeContext interface of @salmonui/data-grid: ctx.tree of column.renderCell, getRowProps and row templates in tree mode.

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

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

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

## Reference

Kind: interface

```ts
interface DataGridTreeContext {
    readonly depth: number;
    readonly hasChildren: boolean;
    readonly expanded: boolean;
    readonly loadStatus: DataGridTreeLoadStatus;
}
```

`ctx.tree` of `column.renderCell`, `getRowProps` and row templates in tree mode.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `depth` | `readonly depth: number;` |  | 0 for root rows. |
| `hasChildren` | `readonly hasChildren: boolean;` |  |  |
| `expanded` | `readonly expanded: boolean;` |  |  |
| `loadStatus` | `readonly loadStatus: DataGridTreeLoadStatus;` |  |  |
