Skip to content

crossroads/ember-form-validator

 
 

Repository files navigation

ember-form-validator

This README outlines the details of collaborating on this Ember addon.

Installation

  • git clone <repository-url> this repository
  • cd ember-form-validator
  • npm install && bower install

Usage

  • Add {{validate-inputs}} at top of your form
  • We need to pass the css-selectors of the element we need to validate
  • For example
{{validate-inputs
  elementCssIdentifiersArrayJson='["#people-count", "#description", ".district-selector select"]'
  errorClass='form__control--error'
  buttonId='#request-submit'
}}
  • elementCssIdentifiersArrayJson will be the json of list of css-selectors for your form elements.
  • errorClass is for applying some error css defined in your project.
  • buttonId will be the id for submit button present for your form.

Running

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Contact

For any issues contact the author at [email protected]

Thanks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 80.7%
  • HTML 14.8%
  • Handlebars 4.0%
  • CSS 0.5%