semisleep / simple-vue-validator

A simple yet flexible validator library for vue.js
MIT License
293 stars 28 forks source link

Is there a way to change the mode per component or field? #48

Closed hamzehdoostie closed 6 years ago

hamzehdoostie commented 6 years ago

Hello,

Regarding mode, I saw from the docs that you can set it two ways: Vue.use(SimpleVueValidator, {mode: 'manual'}; SimpleVueValidator.setMode('conservative');

Is there a way to set it to a specific mode, but only within the scope of a component, and not globally? Also can an individual field be configured to have a specific mode? Thanks.

semisleep commented 6 years ago

Sorry, setting interaction mode per component is not supported at this moment. And I don't think I will be able to implement this recently :( You are welcome to make a pull request for this, if you have time to work on it.

hamzehdoostie commented 6 years ago

Thanks for the response, I still love this plugin :]