c-select-many-to-many

A multi-select dropdown component that allows for selecting values fetched from the generated /list API endpoints for collection navigation properties that were annotated with [ManyToMany].

Tip

It is unlikely that you'll ever need to use this component directly - it is highly recommended that you use c-input instead and let it delegate to c-select-many-to-many for you.

Contents

Examples

<c-select-many-to-many :model="case" for="caseProducts" />
<c-select-many-to-many
    :model="case"
    for="caseProducts"
    dense
    outlined

/>
<c-select-many-to-many
    v-model="case.caseProducts"
    for="Case.caseProducts"
/>

Props

for: string | Property | Value

A metadata specifier for the value being bound. One of:

  • A string with the name of the value belonging to model.
  • A direct reference to a metadata object.
  • A string in dot-notation that starts with a type name.

Important

c-select-many-to-many expects metadata for the "real" collection collection navigation property on a model. If you provide it the string you passed to [ManyToMany], an error wil be thrown.

model?: Model
An object owning the value that was specified by the for prop. If provided, the input will be bound to the corresponding property on the model object.
value: any
If binding the component with v-model, accepts the value part of v-model.
params?: ListParameters
An optional set of Data Source Standard Parameters to pass to API calls made to the server.