You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`c-input`: Added a `filter` prop to for enum inputs to restrict the values available for selection.
23
23
-`c-select`: When bound to a `ViewModel` or `ViewModelCollection`, selected items are converted to `ViewModel` instances before being emitted so that event handlers will receive the final object instance, rather than the intermediate plain model instance.
24
+
-`c-select`: Now supports bound to a non-many-to-many collection navigation property. Selecting an item will populate the foreign key of the dependent item, and deselecting an item will clear the foreign key. This mechanism is only available when using c-select directly - it is not delegated by c-input.
24
25
-`c-select-many-to-many`: The `itemTitle` prop now receives the existing selected middle entity instance, if there is one.
Binding to a collection navigation property of a model:
44
+
45
+
```vue-html
46
+
<c-select :model="person" for="casesAssigned" />
47
+
```
48
+
49
+
This will assign `person` and its PK to the inverse navigation property of the relationship (`Case.AssignedTo`) when items are selected, and will null those properties when items are deselected. Note that this scenario is not delegated to by `c-input` automatically and requires direct usage of `c-select` since it is a fairly unusual scenario and usually requires additional customization (e.g. the `params` and `create` props) to make it function well.
50
+
51
+
----
52
+
43
53
Examples of other props:
44
54
45
55
```vue-html
@@ -61,12 +71,12 @@ Examples of other props:
61
71
62
72
Note: In addition to the below props, `c-select` also supports most props that are supported by Vuetify's [v-text-field](https://vuetifyjs.com/en/components/text-fields/).
0 commit comments