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

Method _setHighlighted

src/material/menu/menu-item.ts:179–185  ·  view source on GitHub ↗
(isHighlighted: boolean)

Source from the content-addressed store, hash-verified

177 }
178
179 _setHighlighted(isHighlighted: boolean) {
180 // We need to mark this for check for the case where the content is coming from a
181 // `matMenuContent` whose change detection tree is at the declaration position,
182 // not the insertion position. See #23175.
183 this._highlighted = isHighlighted;
184 this._changeDetectorRef.markForCheck();
185 }
186
187 _setTriggersSubmenu(triggersSubmenu: boolean) {
188 this._triggersSubmenu = triggersSubmenu;

Callers 1

_setIsMenuOpenFunction · 0.80

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected