API reference: @salmonui/data
TreeRowEnvelopeinterface
import type { TreeRowEnvelope } from '@salmonui/data';interface TreeRowEnvelope<Row> {
readonly kind: 'tree';
readonly row: Row;
readonly depth: number;
readonly parentId: RowId | null;
readonly hasChildren: boolean;
readonly childCount?: number;
readonly children?: readonly TreeRowEnvelope<Row>[];
}
| Name | Signature | Description |
|---|---|---|
kind | readonly kind: 'tree'; | |
row | readonly row: Row; | |
depth | readonly depth: number; | |
parentId | readonly parentId: RowId | null; | |
hasChildren | readonly hasChildren: boolean; | |
childCountoptional | readonly childCount?: number; | |
childrenoptional | readonly children?: readonly TreeRowEnvelope<Row>[]; |