Answers for "accessing component in vuelidate"

1

vuelidate required if another props

elements: {
            $each: {
              type: {
                required,
              },
              question: {
                required: requiredIf(prop => prop.type === 'input'),
              }
            }
          }
Posted by: Guest on October-19-2020
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

Code answers related to "Javascript"

Browse Popular Code Answers by Language