Skip to content

v1.5.0

Compare
Choose a tag to compare
@akuzko akuzko released this 12 Nov 22:55
· 5 commits to master since this release

New Features

  • Added onValidationFailed property. It accepts a callback that is executed during validation routines in case there were validation errors. It is executed after errors are set.
  • Form's default validation now validates inputs within collections that have wildcard validation defined. I.e. if you have 'items.*.name': 'presence' validation defined, you no longer have to define validate method to manually
    iterate over collection items to validate them.
  • If Promise is defined, Form's set method will return a promise object that will be resolved after new attributes have been set.