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

Method getLabel

src/cdk/listbox/listbox.ts:196–198  ·  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

194
195 /** Get the label for this element which is required by the FocusableOption interface. */
196 getLabel() {
197 return (this.typeaheadLabel ?? this.element.textContent?.trim()) || '';
198 }
199
200 /**
201 * No-op implemented as a part of `Highlightable`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected