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

Method close

src/material/sidenav/drawer.ts:533–535  ·  view source on GitHub ↗

Close the drawer.

()

Source from the content-addressed store, hash-verified

531
532 /** Close the drawer. */
533 close(): Promise<MatDrawerToggleResult> {
534 return this.toggle(false);
535 }
536
537 /** Closes the drawer with context that the backdrop was clicked. */
538 _closeViaBackdropClick(): Promise<MatDrawerToggleResult> {

Callers 2

constructorMethod · 0.95
closeMethod · 0.45

Calls 1

toggleMethod · 0.95

Tested by

no test coverage detected