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

Method focus

src/cdk/listbox/listbox.ts:628–630  ·  view source on GitHub ↗

Focus the listbox's host element.

()

Source from the content-addressed store, hash-verified

626
627 /** Focus the listbox's host element. */
628 focus() {
629 this.element.focus();
630 }
631
632 /**
633 * Triggers the given option in response to user interaction.

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected