MCPcopy Index your code
hub / github.com/angular/components / focus

Method focus

src/material/select/select.ts:1327–1329  ·  view source on GitHub ↗

Focuses the select element.

(options?: FocusOptions)

Source from the content-addressed store, hash-verified

1325
1326 /** Focuses the select element. */
1327 focus(options?: FocusOptions): void {
1328 this._elementRef.nativeElement.focus(options);
1329 }
1330
1331 /** Gets the aria-labelledby for the select panel. */
1332 _getPanelAriaLabelledby(): string | null {

Callers 4

_initKeyManagerMethod · 0.95
_resetOptionsMethod · 0.95
_onSelectMethod · 0.95
onContainerClickMethod · 0.95

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected