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

Method toggle

src/material/expansion/expansion-panel.ts:180–182  ·  view source on GitHub ↗

Toggles the expanded state of the expansion panel.

()

Source from the content-addressed store, hash-verified

178
179 /** Toggles the expanded state of the expansion panel. */
180 override toggle(): void {
181 this.expanded = !this.expanded;
182 }
183
184 /** Sets the expanded state of the expansion panel to false. */
185 override close(): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected