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

Method constructor

src/cdk/listbox/listbox.ts:62–69  ·  view source on GitHub ↗
(
    public multiple = false,
    initiallySelectedValues?: T[],
    emitChanges = true,
    compareWith?: (o1: T, o2: T) => boolean,
  )

Source from the content-addressed store, hash-verified

60 */
61class ListboxSelectionModel<T> extends SelectionModel<T> {
62 constructor(
63 public multiple = false,
64 initiallySelectedValues?: T[],
65 emitChanges = true,
66 compareWith?: (o1: T, o2: T) => boolean,
67 ) {
68 super(true, initiallySelectedValues, emitChanges, compareWith);
69 }
70
71 override isMultipleSelection(): boolean {
72 return this.multiple;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected