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

Method toggle

src/material/list/list-option.ts:210–212  ·  view source on GitHub ↗

Toggles the selection state of the option.

()

Source from the content-addressed store, hash-verified

208
209 /** Toggles the selection state of the option. */
210 toggle(): void {
211 this.selected = !this.selected;
212 }
213
214 /** Allows for programmatic focusing of the option. */
215 focus(): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected