MCPcopy Create free account
hub / github.com/angular/components / getNodes

Function getNodes

src/cdk/tree/tree.spec.ts:1638–1640  ·  view source on GitHub ↗
(treeElement: Element)

Source from the content-addressed store, hash-verified

1636}
1637
1638function getNodes(treeElement: Element): HTMLElement[] {
1639 return Array.from(treeElement.querySelectorAll('.cdk-tree-node'));
1640}
1641
1642function getExpandedNodes<T>(nodes: T[] | undefined, tree: CdkTree<T>): T[] {
1643 return nodes?.filter(node => tree.isExpanded(node)) ?? [];

Callers 7

tree.spec.tsFile · 0.70
createFocusTestComponentFunction · 0.70
createComponentFunction · 0.70
expectFlatTreeToMatchFunction · 0.70
checkNodeDescendantsFunction · 0.70
expectNestedTreeToMatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected