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
Copy file name to clipboardExpand all lines: component/events.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,13 @@ You can listen for this by attaching to the `@validated` (`v-validated`) event o
19
19
20
20
## model-updated
21
21
22
-
This event is triggered whenever the the model attached to the form has been updated, usually due to user interaction. It provides the new value and a reference to the field schema for the field which was just updated. This event is triggered each time a field is updated.
22
+
This event is triggered whenever the the model attached to the form has been updated, usually due to user interaction. It provides the new value and a reference to the property name for the field which was just updated. This event is triggered each time a field is updated.
23
23
24
24
Internally, the event is triggered with
25
25
```js
26
26
this.$emit("model-updated", newVal, schema);
27
27
```
28
28
29
-
`newVal` is the value that was just updated, and `schema` is a reference to the individual [field schema](schema.md). `schema` will only contain the individual field data, and not the full schema. This allows you to identify which field was just updated.
29
+
`newVal` is the value that was just updated, and `schema` is a reference to the model's property name found in the [field schema](schema.md). `schema` will only contain the individual property name, and not the full schema. This allows you to identify which field was just updated.
30
30
31
31
You can listen for this by attaching to the `@model-updated` (`v-model-updated`) event on the `<vue-form-generator />` component.
0 commit comments