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

Method select

src/cdk/listbox/listbox.ts:75–83  ·  view source on GitHub ↗
(...values: T[])

Source from the content-addressed store, hash-verified

73 }
74
75 override select(...values: T[]) {
76 // The super class is always in multi-selection mode, so we need to override the behavior if
77 // this selection model actually belongs to a single-selection listbox.
78 if (this.multiple) {
79 return super.select(...values);
80 } else {
81 return super.setSelection(...values);
82 }
83 }
84}
85
86/** A selectable option in a listbox. */

Callers

nothing calls this directly

Calls 2

setSelectionMethod · 0.80
selectMethod · 0.65

Tested by

no test coverage detected