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

Method _setIsAnimating

src/material/sidenav/drawer.ts:637–642  ·  view source on GitHub ↗

Toggles whether the drawer is currently animating.

(isAnimating: boolean)

Source from the content-addressed store, hash-verified

635
636 /** Toggles whether the drawer is currently animating. */
637 private _setIsAnimating(isAnimating: boolean) {
638 if (isAnimating !== this._isAnimating) {
639 this._isAnimating = isAnimating;
640 this._elementRef.nativeElement.classList.toggle('mat-drawer-animating', isAnimating);
641 }
642 }
643
644 private _simulateAnimation() {
645 setTimeout(() => {

Callers 2

_setOpenMethod · 0.95
MatDrawerClass · 0.95

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected