Answers for "vuelidate require if"

0

vuelidate custom validation

const price_greater = (value, vm) => (value >= vm.min_price);
validations: {
    user_price: {
         required,
         price_greater
       }
}
Posted by: Guest on October-08-2020
2

vuelidate same as

validations: {
    form: {
      old_password: {
        data: { required },
      },
      new_password: {
        data: { required },
      },
      repeat_password: {
        data: { 
          sameAsPassword: sameAs(function() {
            return this.form.new_password.data;
          }) 
        },
      },
    },
  },
Posted by: Guest on October-11-2020
0

vuelidate require if

required: requiredIf(()=> { return condition })
Posted by: Guest on October-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language