MCPcopy Index your code
hub / github.com/angular/components / getNodes

Function getNodes

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

Source from the content-addressed store, hash-verified

1625}
1626
1627function getNodes(treeElement: Element): HTMLElement[] {
1628 return Array.from(treeElement.querySelectorAll('.cdk-tree-node'));
1629}
1630
1631function getExpandedNodes<T>(nodes: T[] | undefined, tree: CdkTree<T>): T[] {
1632 return nodes?.filter(node => tree.isExpanded(node)) ?? [];

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…