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

Method _closeItem

src/aria/private/menu/menu.ts:275–284  ·  view source on GitHub ↗

Closes the specified menu item after a delay.

(item: MenuItemPattern<V>)

Source from the content-addressed store, hash-verified

273
274 /** Closes the specified menu item after a delay. */
275 private _closeItem(item: MenuItemPattern<V>) {
276 this._clearOpenTimeout();
277
278 if (!this._closeTimeout) {
279 this._closeTimeout = setTimeout(() => {
280 item.close();
281 this._closeTimeout = undefined;
282 }, this.inputs.expansionDelay());
283 }
284 }
285
286 /** Opens the specified menu item after a delay. */
287 private _openItem(item: MenuItemPattern<V>) {

Callers 1

onMouseOverMethod · 0.95

Calls 2

_clearOpenTimeoutMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected