Skip to content

Support custom validation classes #183

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

Merged
merged 1 commit into from
Apr 15, 2017

Conversation

cristijora
Copy link
Collaborator

@cristijora cristijora commented Apr 15, 2017

Bootstrap has validation states represented as classes which are pretty by default and can be customized really easy or which are overwritten in many front end templates such as admin templates or fancy css templates.

I wanted to support those states as well as custom validation classes rather than relying only on the error class.
Demo here
Usage:

formOptions: {
  validationErrorClass: "has-error",
  validationSuccessClass: "has-success"
}

Outcome:
formgeneratorbsvalidate

Note: If you specify the 2 validation classes, they will overwrite the default error class.

Copy link
Member

@icebob icebob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR!

@icebob icebob added this to the v2.0.0 milestone Apr 15, 2017
@icebob icebob merged commit 452d492 into vue-generators:master Apr 15, 2017
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

Successfully merging this pull request may close these issues.

2 participants