Closed zslabs closed 7 years ago
Hi @zslabs
Thank you for your interest in the BunnyJS and submitting your issue.
Please, in the future, always provide all the detailed information about your issue - which component exactly are you speaking about, that might be also represented in the title of the issue.
I suppose you are talking about the src/Validation
.
Since success state to input is added in very rare cases and I can't remember any of them, there is currently no success state in Bunny Validation, thus, there is no option to add a success class.
Could you, please provide, a use-case, how exactly and when exactly you would like to add a success state to your input? I suppose during the Validation.validateSection()
or init()
when inputs are checked, if input passed a validation you would like to add a different class to an input group, am I right?
Hey @Mevrael, Appreciate the reply. Here's a screen shot of the various states of form inputs that I'd be looking for:
I use the following classes on what Bunny refers to as the the form container,
is-required
is-valid
is-notValid
0.14.9
added ValidationConfig.classInputGroupSuccess
which defaults to BS4 has-success
.
To activate this feature add showvalid
attribute to <form>
Awesome, thanks!
Hi all, I saw there was a
errorClass
option, but am not seeing anything that would allow a "success" class to be added to input groups - is that possible?