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

Method focus

src/material/list/list-option.ts:215–217  ·  view source on GitHub ↗

Allows for programmatic focusing of the option.

()

Source from the content-addressed store, hash-verified

213
214 /** Allows for programmatic focusing of the option. */
215 focus(): void {
216 this._hostElement.focus();
217 }
218
219 /** Gets the text label of the list option. Used for the typeahead functionality in the list. */
220 getLabel() {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected