Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Req] Add "IsValid" method to form controls #4111

Closed
codegrue opened this issue May 13, 2019 · 2 comments
Closed

[Feature Req] Add "IsValid" method to form controls #4111

codegrue opened this issue May 13, 2019 · 2 comments

Comments

@codegrue
Copy link

codegrue commented May 13, 2019

They currently have a "validate(value)" method, which can be used to derive an "IsValid", but it requires that you know and pass in the control's current value. IsValid would be cleaner with less boilerplate.

@lucasfernog
Copy link
Contributor

If you don't pass the value, it uses the control model, like you want
https://github.com/quasarframework/quasar/blob/dev/ui/src/mixins/validate.js#L79

@codegrue
Copy link
Author

Good to know! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants