Vuetify: Best way for validation on form inputs?

Created on 28 Dec 2016  Â·  8Comments  Â·  Source: vuetifyjs/vuetify

question

Most helpful comment

+1 on this; would be great to see some sort of Form component that houses all of the form's errors so that it can be evaluated easily before submitting a form, for example. I love this library, thanks @johnleider

All 8 comments

Wrap the component in your own, then using the validate property. https://vuejs.org/v2/guide/components.html#Prop-Validation
Complete the validation in the component or system that is managing whatever variable you are trying to validate.

@johnleider it would be great to see some form validation examples inside of the form section documentation. Some basic field input error handling would be awesome

+1 on this; would be great to see some sort of Form component that houses all of the form's errors so that it can be evaluated easily before submitting a form, for example. I love this library, thanks @johnleider

This may be something that is done after the Vuetify core is finished. No
promises though.

On May 8, 2017 8:27 AM, "Wes Dews" notifications@github.com wrote:

+1 on this; would be great to see some sort of Form component that houses
all of the form's errors so that it can be evaluated easily before
submitting a form, for example. I love this library, thanks @johnleider
https://github.com/johnleider

—

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vuetifyjs/vuetify/issues/44#issuecomment-299853119,
or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIpOghVMdMJblfSGYzB_x-Ay6mRjFiHSks5r3wo-gaJpZM4LXGws
.

+1

This is also not very hard to do yourself. Here's one that I've used before.

https://gist.github.com/nekosaur/1da5fed1abcd7ccbf077e86d33e94183

@nekosaur nice example!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itanka9 picture itanka9  Â·  3Comments

radicaled picture radicaled  Â·  3Comments

gluons picture gluons  Â·  3Comments

aaronjpitts picture aaronjpitts  Â·  3Comments

ricardovanlaarhoven picture ricardovanlaarhoven  Â·  3Comments