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

Method activate

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

Activates the widget.

(event?: KeyboardEvent | FocusEvent)

Source from the content-addressed store, hash-verified

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

Callers 2

onFocusInMethod · 0.95

Calls 2

setMethod · 0.80
isActivatedMethod · 0.45

Tested by

no test coverage detected