djhi/meteor-autoform-materialize

Add Class Invalid

Closed this issue · 9 comments

On Materialize to make the input with red underline after validation fail need add this class invalid to input.

djhi commented

Thx for reporting this. I'll add it asap

djhi commented

I haven't been able to make it work with pickadate and dropdowns but it should now work for all other inputs. You may have to implement it yourself for custom inputs

Oh man thank you!
I need learn a bit about the helpers of autoform and then I can help with it because is important to have to all inputs, but for now I will show a "toast" message for this inputs that don't have autovalidation.

djhi commented

They have validation as you can see on the playground but I haven't find a
way to add the invalid class without causing problems.

Le mer. 8 avr. 2015 à 15:04, Jadson notifications@github.com a écrit :

Oh man thank you!
I need learn a bit about the helpers of autoform and then I can help with
it because is important to have to all inputs, but for now I will show a
"toast" message for this inputs that don't have autovalidation.


Reply to this email directly or view it on GitHub
#13 (comment)
.

djhi commented

In case you don't know, a playground is available here:
https://github.com/djhi/meteor-autoform-materialize-playground/tree/master

Le mer. 8 avr. 2015 à 15:07, Gildas Garcia gildas.garcia@gmail.com a
écrit :

They have validation as you can see on the playground but I haven't find a
way to add the invalid class without causing problems.

Le mer. 8 avr. 2015 à 15:04, Jadson notifications@github.com a écrit :

Oh man thank you!
I need learn a bit about the helpers of autoform and then I can help with
it because is important to have to all inputs, but for now I will show a
"toast" message for this inputs that don't have autovalidation.


Reply to this email directly or view it on GitHub
#13 (comment)
.

Yes I saw, I will see it soon, maybe use other class name, and add custom styles, but need see on Materialize repo about that.

djhi commented

If anyone ask, I can also add the valid class

I just posted a question about this: Dogfalo/materialize#1454

Have you tried using the "Custom Error Messages" (data-error) for dropdowns ?? This has been introduced in v0.97

Check: http://materializecss.com/forms.html