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

Method _onAnimationDone

src/material/menu/menu.ts:455–466  ·  view source on GitHub ↗

Callback that is invoked when the panel animation completes.

(state: string)

Source from the content-addressed store, hash-verified

453
454 /** Callback that is invoked when the panel animation completes. */
455 protected _onAnimationDone(state: string) {
456 const isExit = state === EXIT_ANIMATION;
457
458 if (isExit || state === ENTER_ANIMATION) {
459 if (isExit) {
460 clearTimeout(this._exitFallbackTimeout);
461 this._exitFallbackTimeout = undefined;
462 }
463 this._animationDone.next(isExit ? 'void' : 'enter');
464 this._isAnimating.set(false);
465 }
466 }
467
468 protected _onAnimationStart(state: string) {
469 if (state === ENTER_ANIMATION || state === EXIT_ANIMATION) {

Callers 1

_setIsOpenMethod · 0.95

Calls 2

setMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected