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

Method _setIsAnimating

src/material/sidenav/drawer.ts:627–629  ·  view source on GitHub ↗

Toggles whether the drawer is currently animating.

(isAnimating: boolean)

Source from the content-addressed store, hash-verified

625
626 /** Toggles whether the drawer is currently animating. */
627 private _setIsAnimating(isAnimating: boolean) {
628 this._elementRef.nativeElement.classList.toggle('mat-drawer-animating', isAnimating);
629 }
630
631 _getWidth(): number {
632 return this._elementRef.nativeElement.offsetWidth || 0;

Callers 2

_setOpenMethod · 0.95
MatDrawerClass · 0.95

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected