Description | Usage | Value |
---|---|---|
Form status |
vm.$modified(); vm.$touched();
|
MODIFIED TOUCHED |
Group name modified/touched |
vm.$modified('name'); vm.$touched('name');
|
MODIFIED TOUCHED |
Group gender modified/touched |
vm.$modified('gender'); vm.$touched('gender');
|
MODIFIED TOUCHED |
vm.$data.form
modified: false
and the internal variable that stores the starting value
of the field will be updated to the current value. You can also reset the state based on group name instead of the entire
form.
vm.$resetModified();
- Entire formvm.$resetModified('someGroup');
- By group name
Heavily modified and gutted version of Vue Validator by Radovan Lozej.
vm.$data.vmodified