Today, I'm happy to introduce version 1.0 of the new feathersui-validators open source project, which is a port of the form validation classes from Apache Flex (formerly Adobe Flex) to Feathers UI, Haxe and OpenFL.
This is the newest of multiple projects that I'll be releasing as part of the Feathers UI v1.0 release week celebration.
The following validator classes are included in the library:
CreditCardValidatorverifies Visa, MasterCard, AMEX, Discover, and Diner's Card numbers.
CurrencyValidatorvalidates the formatting of a numeric monetary value, including the currency symbol (such as
€) and appropriate precision for things like cents/pence.
DateValidatorvalidates a date value, including month, day, and year, to ensure that all parts are in the correct ranges and the specified formatting order.
EmailValidatorvalidates an email address.
NumberValidatorvalidates a numeric value, including support for thousands separator, decimal separator, precision, and negative values.
PhoneNumberValidatorvalidates 10 digit phone numbers, including formatting characters.
RegExpValidatoris the most versitile, allowing the custom validation using regular expressions.
SocialSecurityValidatorvalidates the formatting of a US social security number.
StringValidatorensures that a string meets minium and maximum length requirements.
ZipCodeValidatorvalidates US and Canadian postal codes (and it can optionally allow both at the same time).
All validators have the option to make a value required, or to optionally allow an empty value.
Install Form Validators v1.0.0 for Feathers UI
Form Validators v1.0.0 may be installed using the haxelib install command in your terminal.
haxelib install feathersui-validators 1.0.0
The v1.0.0 API Reference includes descriptions of all APIs available in Form Validators for Feathers UI.
Questions or comments?
If you need some help, or want to give feedback, feel free to create a thread in the Feathers UI Community forum.