Skip to content
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

New way to define fields, messages and callbacks #184

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

New way to define fields, messages and callbacks #184

wants to merge 6 commits into from

Commits on Mar 21, 2016

  1. New way to define fields

    The fields are defined by a single object where each key represents the
    name of one field or many fields separated per a comma
    LuisaeDev committed Mar 21, 2016
    Configuration menu
    Copy the full SHA
    81297bf View commit details
    Browse the repository at this point in the history
  2. Custom messages for fields

    New argument in the constructor to pass a object with custom messages
    for each field and their corresponding rules
    LuisaeDev committed Mar 21, 2016
    Configuration menu
    Copy the full SHA
    7f4cbe1 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2016

  1. Better way to define form messages

    The messages must to be defined in the "fields" argument
    LuisaeDev committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    5f9049c View commit details
    Browse the repository at this point in the history
  2. setRules() method updated

    The setRules() method was updated with the new way of define fields
    LuisaeDev committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    2d150bf View commit details
    Browse the repository at this point in the history
  3. onSuccess() and onFail() methods added

    Was added two methods to handle the callbacks when the form is
    submitted. The callback in the constructor is an "always" callback but
    it is optional
    LuisaeDev committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    db74c38 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2f93c9e View commit details
    Browse the repository at this point in the history