MCPcopy
hub / github.com/angular/angular / focus

Method focus

packages/forms/signals/src/api/control.ts:128–128  ·  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

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

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