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

Method selectValue

src/cdk/listbox/listbox.ts:521–526  ·  view source on GitHub ↗

* Select the given value. * @param value The value to select

(value: T)

Source from the content-addressed store, hash-verified

519 * @param value The value to select
520 */
521 selectValue(value: T) {
522 if (this._invalid) {
523 this.selectionModel.clear(false);
524 }
525 this.selectionModel.select(value);
526 }
527
528 /**
529 * Deselect the given option.

Callers 1

selectMethod · 0.95

Calls 2

clearMethod · 0.65
selectMethod · 0.65

Tested by

no test coverage detected