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

Method getLabel

src/material/core/option/option.ts:225–227  ·  view source on GitHub ↗

Gets the label to be used when determining whether the option should be focused.

()

Source from the content-addressed store, hash-verified

223
224 /** Gets the label to be used when determining whether the option should be focused. */
225 getLabel(): string {
226 return this.viewValue;
227 }
228
229 /** Ensures the option is selected when activated from the keyboard. */
230 _handleKeydown(event: KeyboardEvent): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected