MCPcopy Index your code
hub / github.com/angular/components / toggleSelected

Method toggleSelected

src/material/chips/chip-option.ts:166–169  ·  view source on GitHub ↗

Toggles the current selected state of this chip.

(isUserInput: boolean = false)

Source from the content-addressed store, hash-verified

164
165 /** Toggles the current selected state of this chip. */
166 toggleSelected(isUserInput: boolean = false): boolean {
167 this._setSelectedState(!this.selected, isUserInput, true);
168 return this.selected;
169 }
170
171 override _handlePrimaryActionInteraction() {
172 if (!this.disabled) {

Callers 1

Calls 1

_setSelectedStateMethod · 0.95

Tested by

no test coverage detected