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

Method open

src/material/sidenav/drawer.ts:528–530  ·  view source on GitHub ↗

* Open the drawer. * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically. * Used for focus management after the sidenav is closed.

(openedVia?: FocusOrigin)

Source from the content-addressed store, hash-verified

526 * Used for focus management after the sidenav is closed.
527 */
528 open(openedVia?: FocusOrigin): Promise<MatDrawerToggleResult> {
529 return this.toggle(true, openedVia);
530 }
531
532 /** Close the drawer. */
533 close(): Promise<MatDrawerToggleResult> {

Callers

nothing calls this directly

Calls 1

toggleMethod · 0.95

Tested by

no test coverage detected