API reference: @salmonui/data-grid/engine/tree
TreeRowInfointerface
import type { TreeRowInfo } from '@salmonui/data-grid/engine/tree';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.
| Name | Signature | Description |
|---|---|---|
rowId | readonly rowId: RowId; | |
depth | readonly depth: number; | |
parentId | readonly parentId: RowId | null; | |
hasChildren | readonly hasChildren: boolean; | Kept children, or unloaded lazy children ( |
childCount | readonly childCount: number; | |
expanded | readonly expanded: boolean; | Shown expanded: false for a lazy parent whose children were never requested, whatever its default ( |
loadStatus | readonly loadStatus: TreeLoadStatus; | |
posinset | readonly posinset: number; | 1-based ordinal and count among kept siblings ( |
setsize | readonly setsize: number; | |
context | readonly context: boolean; | Kept only as an ancestor or descendant of a match ( |
visible | readonly visible: boolean; | Visible in the current view (not hidden by a collapsed ancestor, a filter, or the page). |