Giter Club home page Giter Club logo

vue-validator's People

Contributors

franciscolourenco avatar xrado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-validator's Issues

Live validation mode

Most inputs should validate on blur like they do now, but in some special cases it would be useful to have live validation as the user is typing.
Would it be possible to have some kind of option to enable this functionality in specific inputs?

Cheers

Why is modified always set to true before I type anything?

Is there any reason why each input field is validated upon page reload? I only want to set "valid" or "invalid" when user start typing.

validator
{
"name": {
"_validate": {
"required": "required"
},
"required": true,
"modified": true,
"valid": true
},
"location": {
"_validate": {
"location": "location"
},
"location": false,
"modified": true,
"valid": false
}
}

form object
{
"name": ""
}

Warnings: You are setting a non-existent path

Any idea why is this happening?

[Vue warn]: You are setting a non-existent path "validator" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.custom" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.custom._validate.numeric" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.custom.numeric" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.custom._validate.min" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.custom.min" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.custom._validate.group" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email._validate.required" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email.required" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email._validate.email" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email.email" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.email._validate.group" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.key" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.key._validate.required" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.
debug.js:30 [Vue warn]: You are setting a non-existent path "validator.license.key.required" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.

Comparison with kazupon/vue-validator

Considering kazupon/vue-validator was created before this one, can you explain the motivation behind creating this alternative and the main differences / benefits between the two of them?

Thank you :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.