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

Method open

src/material/sidenav/drawer.ts:536–538  ·  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

534 * Used for focus management after the sidenav is closed.
535 */
536 open(openedVia?: FocusOrigin): Promise<MatDrawerToggleResult> {
537 return this.toggle(true, openedVia);
538 }
539
540 /** Close the drawer. */
541 close(): Promise<MatDrawerToggleResult> {

Callers

nothing calls this directly

Calls 1

toggleMethod · 0.95

Tested by

no test coverage detected