-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add option to automatically validate #34
Comments
Have you checked out
Is there a reason why you want it directly on |
I think that having
And in those cases, instead of having to wire up some odd handler to get validation up and running, or dragging So, that's my two cents. I think But that's just me, and I don't make the decisions 'round here (until I start bribing everyone with free coffee). |
If this isn't urgent, I'd like to wait a bit and talk it over with @morethanreal before we decide on anything. |
It's certainly not urgent! Better to make a well-thought-out decision instead of rushing into anything, so I'm all for more discussion. |
I agree with this one. I don't always want to use the paper elements, so a 'validate-on-change' feature would really be nice, especially since I'm a big fan of how easy it is to hide/show 'as-you-type' error messages in AngularJS. |
First of all, if this already is possible/exists, please, banish this issue to the shadows!
If not, though, here's what I think would be super swell:
What
auto-validate
property:_bindValueChanged
:Why
Currently, validation is already easy. Not saying it's hard. Call
validate()
, and bark at the user for writing any despicable input.But here's a use case that currently (to my knowledge) isn't possible as written:
Instead, I've been doing this:
It would be much nicer to be able to do it all declaratively and get rid of that one extra handler. It seems to me that when there is a bindable, notifying
invalid
property that it would seem logical to have the option for it to have its value populated automatically if desired.The text was updated successfully, but these errors were encountered: