MCPcopy Index your code
hub / github.com/angular/components / openMenuOnHover

Function openMenuOnHover

src/cdk/menu/menu.spec.ts:171–178  ·  view source on GitHub ↗

Using a fake hover event, open the specified menu given a reference to its trigger.

(menuElement?: HTMLElement)

Source from the content-addressed store, hash-verified

169 }
170 /** Using a fake hover event, open the specified menu given a reference to its trigger. */
171 function openMenuOnHover(menuElement?: HTMLElement) {
172 if (menuElement) {
173 dispatchMouseEvent(menuElement, 'mouseenter');
174 detectChanges();
175 } else {
176 throw Error('No element trigger provided. Is it visible in the DOM?');
177 }
178 }
179
180 /**
181 * Fakes mouse hover events from some source point to some target point. Along the way, emits

Callers 1

menu.spec.tsFile · 0.85

Calls 2

dispatchMouseEventFunction · 0.85
detectChangesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…