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

Method setActiveStyles

src/material/core/option/option.ts:205–210  ·  view source on GitHub ↗

* This method sets display styles on the option to make it appear * active. This is used by the ActiveDescendantKeyManager so key * events will display the proper options as active on arrow key events.

()

Source from the content-addressed store, hash-verified

203 * events will display the proper options as active on arrow key events.
204 */
205 setActiveStyles(): void {
206 if (!this._active) {
207 this._active = true;
208 this._changeDetectorRef.markForCheck();
209 }
210 }
211
212 /**
213 * This method removes display styles on the option that made it appear

Callers

nothing calls this directly

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected