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

Method _closeItem

src/aria/private/menu/menu.ts:263–272  ·  view source on GitHub ↗

Closes the specified menu item after a delay.

(item: MenuItemPattern<V>)

Source from the content-addressed store, hash-verified

261
262 /** Closes the specified menu item after a delay. */
263 private _closeItem(item: MenuItemPattern<V>) {
264 this._clearOpenTimeout();
265
266 if (!this._closeTimeout) {
267 this._closeTimeout = setTimeout(() => {
268 item.close();
269 this._closeTimeout = undefined;
270 }, this.inputs.expansionDelay());
271 }
272 }
273
274 /** Opens the specified menu item after a delay. */
275 private _openItem(item: MenuItemPattern<V>) {

Callers 1

onMouseOverMethod · 0.95

Calls 2

_clearOpenTimeoutMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected