View as Markdown

API reference: @salmonui/data-grid/engine/tree

countSelectedDescendantsfunction

import { countSelectedDescendants } from '@salmonui/data-grid/engine/tree';
function countSelectedDescendants(layout: TreeLayout, selected: (sourceIndex: number) => boolean): Int32Array;

Selected descendants of every kept row of layout (by source index). O(n): one reverse pre-order pass.