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

Method _openItem

src/aria/private/menu/menu.ts:274–281  ·  view source on GitHub ↗

Opens the specified menu item after a delay.

(item: MenuItemPattern<V>)

Source from the content-addressed store, hash-verified

272
273 /** Opens the specified menu item after a delay. */
274 private _openItem(item: MenuItemPattern<V>) {
275 this._clearOpenTimeout();
276
277 this._openTimeout = setTimeout(() => {
278 item.open();
279 this._openTimeout = undefined;
280 }, this.inputs.expansionDelay());
281 }
282
283 /** Handles mouseout events for the menu. */
284 onMouseOut(event: MouseEvent) {

Callers 1

onMouseOverMethod · 0.95

Calls 2

_clearOpenTimeoutMethod · 0.95
openMethod · 0.65

Tested by

no test coverage detected