MCPcopy
hub / github.com/angular/components / getWidgetEl

Function getWidgetEl

src/aria/toolbar/toolbar.spec.ts:92–95  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

90 }
91
92 function getWidgetEl(text: string): HTMLElement | null {
93 const widgets = getWidgetEls();
94 return widgets.find(widget => widget.textContent?.trim() === text) || null;
95 }
96
97 function getWidgetEls(): HTMLElement[] {
98 return fixture.debugElement

Callers 1

toolbar.spec.tsFile · 0.85

Calls 1

getWidgetElsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…