Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ember-form-validator

abhinav098453MIT1.0.9

Provides a form validator to validate empty inputs, select and checkboxes.

ember-addon, ember-form-validator, form-validator, input-validator, select-validator

readme

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 `abhinav.garg1218@gmail.com`

Thanks