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

Method getLabel

src/cdk/menu/menu-item.ts:159–161  ·  view source on GitHub ↗

Get the label for this element which is required by the FocusableOption interface.

()

Source from the content-addressed store, hash-verified

157
158 /** Get the label for this element which is required by the FocusableOption interface. */
159 getLabel(): string {
160 return this.typeaheadLabel || this._elementRef.nativeElement.textContent?.trim() || '';
161 }
162
163 /** Reset the tabindex to -1. */
164 _resetTabIndex() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected