Vee-validate: Creating a custom validation for a component

Created on 9 May 2018  ยท  2Comments  ยท  Source: logaretm/vee-validate

Versions:

  • VueJs: 2.5.13
  • Vee-Validate: 2.0.5

Description:

I am using V-Validate for some input fields on my form, and I would like to extend the validator to work for a custom component as well.

 <percent-table
                v-validate="precent_table"
        >
  </percent-table>

Is there a way to write an extension at the component level, not for an input field ?

Thanks,
Yaron

โ” question

All 2 comments

VeeValidate supports custom components, you just need to implement the
v-model and emit input event.

Please read through the documentation as I can only respond via email at
the moment.

>

Was this page helpful?
0 / 5 - 0 ratings