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

Method focus

src/material/stepper/step-header.ts:105–111  ·  view source on GitHub ↗

Focuses the step header.

(origin?: FocusOrigin, options?: FocusOptions)

Source from the content-addressed store, hash-verified

103
104 /** Focuses the step header. */
105 override focus(origin?: FocusOrigin, options?: FocusOptions) {
106 if (origin) {
107 this._focusMonitor.focusVia(this._elementRef, origin, options);
108 } else {
109 this._elementRef.nativeElement.focus(options);
110 }
111 }
112
113 /** Returns string label of given step if it is a text label. */
114 _stringLabel(): string | null {

Callers

nothing calls this directly

Calls 2

focusViaMethod · 0.80
focusMethod · 0.65

Tested by

no test coverage detected