# DataGridTreeRowInfo (@salmonui/data-grid)

> The DataGridTreeRowInfo interface of @salmonui/data-grid: Row info of api.getTreeRow(rowId).

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

```ts
import type { DataGridTreeRowInfo } 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 DataGridTreeRowInfo {
    readonly rowId: RowId;
    readonly depth: number;
    readonly parentId: RowId | null;
    readonly hasChildren: boolean;
    readonly childCount: number;
    readonly expanded: boolean;
    readonly loadStatus: DataGridTreeLoadStatus;
    readonly posinset: number;
    readonly setsize: number;
    readonly context: boolean;
    readonly visible: boolean;
}
```

Row info of `api.getTreeRow(rowId)`.

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `depth` | `readonly depth: number;` |  |  |
| `parentId` | `readonly parentId: RowId \| null;` |  |  |
| `hasChildren` | `readonly hasChildren: boolean;` |  |  |
| `childCount` | `readonly childCount: number;` |  |  |
| `expanded` | `readonly expanded: boolean;` |  |  |
| `loadStatus` | `readonly loadStatus: DataGridTreeLoadStatus;` |  |  |
| `posinset` | `readonly posinset: number;` |  | 1-based ordinal and count among the kept siblings (`aria-posinset` / `aria-setsize`). |
| `setsize` | `readonly setsize: number;` |  |  |
| `context` | `readonly context: boolean;` |  | Kept only as an ancestor or descendant of a filter match. |
| `visible` | `readonly visible: boolean;` |  |  |
