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

Method _closeItem

src/aria/private/menu/menu.ts:262–271  ·  view source on GitHub ↗

Closes the specified menu item after a delay.

(item: MenuItemPattern<V>)

Source from the content-addressed store, hash-verified

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

Callers 1

onMouseOverMethod · 0.95

Calls 2

_clearOpenTimeoutMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected