UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

8 lines (7 loc) 305 B
import { getFocusableNodes } from "../utils/get-focusable-nodes.js"; import { getTreeNodeId } from "../utils/get-tree-node-id.js"; export function getAllIds(panel) { const focusables = getFocusableNodes(panel); const allIds = new Set(focusables.map((c) => getTreeNodeId(c))); return allIds; }