Skip to content

@eightkk/vue-weave / core / flattenTreeGrid

Function: flattenTreeGrid() ​

flattenTreeGrid<R>(index, expandedIds): TreeGridLines<R>

Defined in: src/core/treeGrid.ts:474

The displayed lines: the rows in tree order without the descendants of collapsed rows, and after the children of an expanded row whose childStatus is unloaded, loading or failed, a status line. IDs in expandedIds that name no row, or a row that cannot expand, are ignored. Iterative, so a deep chain does not overflow the stack.

Type Parameters ​

R ​

R extends TreeGridRow<unknown>

Parameters ​

index ​

TreeGridIndex<R>

expandedIds ​

Iterable<string>

Returns ​

TreeGridLines<R>

Released under the MIT License.