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

Method getText

src/material/tree/testing/node-harness.ts:54–56  ·  view source on GitHub ↗

Gets the tree node's text.

()

Source from the content-addressed store, hash-verified

52
53 /** Gets the tree node's text. */
54 async getText(): Promise<string> {
55 return (await this.host()).text({exclude: '.mat-tree-node, .mat-nested-tree-node, button'});
56 }
57
58 /** Toggles node between expanded/collapsed. Only works when node is not disabled. */
59 async toggle(): Promise<void> {

Callers 8

_getCellPredicateFunction · 0.45
getCellTextByIndexFunction · 0.45
getCellTextByColumnNameFunction · 0.45
getTreeStructureMethod · 0.45
getNodePredicateFunction · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected