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

Method activate

src/aria/private/grid/widget.ts:184–190  ·  view source on GitHub ↗

Activates the widget.

(event?: KeyboardEvent | FocusEvent)

Source from the content-addressed store, hash-verified

182
183 /** Activates the widget. */
184 activate(event?: KeyboardEvent | FocusEvent): void {
185 if (this.isActivated()) return;
186 if (this.inputs.widgetType() === 'simple') return;
187
188 this.isActivated.set(true);
189 this.lastActivateEvent.set(event);
190 }
191
192 /** Deactivates the widget and restores focus to the widget's host element. */
193 deactivate(event?: KeyboardEvent | FocusEvent): void {

Callers 2

onFocusInMethod · 0.95

Calls 2

setMethod · 0.80
isActivatedMethod · 0.45

Tested by

no test coverage detected