# TreeRowInfo (@salmonui/data-grid/engine/tree)

> The TreeRowInfo interface of @salmonui/data-grid/engine/tree: What the renderer needs per tree row (ctx.tree, row ARIA, toggle). Stable identity while unchanged.

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

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

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

## Reference

Kind: interface

```ts
interface TreeRowInfo {
    readonly rowId: RowId;
    readonly depth: number;
    readonly parentId: RowId | null;
    readonly hasChildren: boolean;
    readonly childCount: number;
    readonly expanded: boolean;
    readonly loadStatus: TreeLoadStatus;
    readonly posinset: number;
    readonly setsize: number;
    readonly context: boolean;
    readonly visible: boolean;
}
```

What the renderer needs per tree row (`ctx.tree`, row ARIA, toggle). Stable identity while unchanged.

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `depth` | `readonly depth: number;` |  |  |
| `parentId` | `readonly parentId: RowId \| null;` |  |  |
| `hasChildren` | `readonly hasChildren: boolean;` |  | Kept children, or unloaded lazy children (`hasChildrenField`). |
| `childCount` | `readonly childCount: number;` |  |  |
| `expanded` | `readonly expanded: boolean;` |  | Shown expanded: false for a lazy parent whose children were never requested, whatever its default (`isExpanded` reads the state). |
| `loadStatus` | `readonly loadStatus: TreeLoadStatus;` |  |  |
| `posinset` | `readonly posinset: number;` |  | 1-based ordinal and count among kept siblings (`aria-posinset` / `aria-setsize`). |
| `setsize` | `readonly setsize: number;` |  |  |
| `context` | `readonly context: boolean;` |  | Kept only as an ancestor or descendant of a match (`data-tree-context`). |
| `visible` | `readonly visible: boolean;` |  | Visible in the current view (not hidden by a collapsed ancestor, a filter, or the page). |
