API reference: @salmonui/data-grid/engine/tree
TreeViewModelinterface
import type { TreeViewModel } from '@salmonui/data-grid/engine/tree';interface TreeViewModel {
readonly structure: TreeStructure;
readonly expanded: Uint8Array;
readonly match: Uint8Array | null;
readonly lazy: Uint8Array | null;
readonly ranges: TreeRanges;
readonly pageBy: 'all' | 'root';
}
The tree view's per-model data (shared by its paged views).
| Name | Signature | Description |
|---|---|---|
structure | readonly structure: TreeStructure; | |
expanded | readonly expanded: Uint8Array; | By source index: 1 when the row is expanded. |
match | readonly match: Uint8Array | null; | By source index: 1 when the row matches the query (null: every kept row matches). Kept rows that do not match are context rows. |
lazy | readonly lazy: Uint8Array | null; | By source index: 1 when the row has children that are not loaded (lazy), or null. |
ranges | readonly ranges: TreeRanges; | |
pageBy | readonly pageBy: 'all' | 'root'; |
|