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

Method focus

packages/forms/signals/src/api/control.ts:130–130  ·  view source on GitHub ↗

* Focuses the UI control. * * If the focus method is not implemented, Signal Forms will attempt to focus the host element * when asked to focus this control.

(options?: FocusOptions)

Source from the content-addressed store, hash-verified

128 * when asked to focus this control.
129 */
130 focus?(options?: FocusOptions): void;
131 /**
132 * Resets the UI control to its pristine state.
133 */

Callers 15

handleClickMethod · 0.65
focusMethod · 0.65
constructorMethod · 0.65
FormFieldClass · 0.65
focusBoundControlMethod · 0.65
scrollToAnchorMethod · 0.65
focusOnLastFocusedRowMethod · 0.65
handleEscapePressMethod · 0.65
handleTabKeypressMethod · 0.65

Implementers 2

CustomControlpackages/forms/signals/test/web/intero
FormFieldpackages/forms/signals/src/directive/f

Calls

no outgoing calls

Tested by 2

focusMethod · 0.52
constructorMethod · 0.52