Code Monkey home page Code Monkey logo

validation's Introduction

Enhancements

  • First class TypeScript support
  • Asynchronous validation
  • Entity validation
  • Multiple controllers per view.
  • Drop validate.js
  • Errors that aren't specific to a particular property/element
  • Conditional validation
  • Make it easier to define custom rules
  • Make it easier to customize error messages / I18N
  • Keyed message resources
  • Use binding engine to render message templates
  • Improve renderer API to make animation scenarios and "success" scenarios possible

Under Consideration

  • Enable specifying rules for nested properties: ValidationRules.ensure('foo.bar.baz').required();
  • Validation sequencing: add an option or change the standard behavior such that rules specific to a particular property are validated sequentially. The first validation error cancels the remaining validation work for the property. Side-effect: properties would never have more than one error. Benefit: expensive rules could be validated only when everything else is valid.

Known Issues

  • & validate does not work with two-way custom attributes because it's unable to locate the associated DOM element.
  • Rule property decorators missing. @required, etc

Demos

  • Fluent API: ensure, displayName Rules: required, satisfies, min/max-length/items, email, matches Message customization: withMessage, withMessageKey when,
  • Replacing default messages

Building

npm run build

validation's People

Contributors

aaike avatar behzad888 avatar bfil avatar charlespockert avatar cmichaelgraham avatar dpinart avatar eganj avatar eisenbergeffect avatar ejsmith avatar fabioluz avatar gitter-badger avatar janus007 avatar janvanderhaegen avatar jdanyow avatar jeroenvinke avatar jods4 avatar joshmccullough avatar manuel-guilbault avatar markherhold avatar mbroadst avatar moshensky avatar niieani avatar obany avatar paulinfrancis avatar plwalters avatar semigradsky avatar shingos avatar tomsean avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.