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

Method _onAnimationDone

src/material/menu/menu.ts:457–468  ·  view source on GitHub ↗

Callback that is invoked when the panel animation completes.

(state: string)

Source from the content-addressed store, hash-verified

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