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

Method onFocusIn

src/aria/private/grid/cell.ts:126–135  ·  view source on GitHub ↗

Handles focusin events for the cell.

(event: FocusEvent)

Source from the content-addressed store, hash-verified

124
125 /** Handles focusin events for the cell. */
126 onFocusIn(event: FocusEvent): void {
127 this.isFocused.set(true);
128
129 const focusTarget = _getEventTarget<Element>(event);
130 const widget = this.inputs.getWidget(focusTarget);
131 if (!widget) return;
132
133 // Pass down focusin event to the widget.
134 widget.onFocusIn(event);
135 }
136
137 /** Handles focusout events for the cell. */
138 onFocusOut(event: FocusEvent): void {

Callers

nothing calls this directly

Calls 2

_getEventTargetFunction · 0.90
setMethod · 0.80

Tested by

no test coverage detected