How to use the aurelia-validation.validationMessages function in aurelia-validation

To help you get started, we’ve selected a few aurelia-validation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jbockle / aurelia-json-schema-form / dist / commonjs / rules / string-rules.js View on Github external
StringRules.prototype.setCustomMessages = function () {
        aurelia_validation_1.validationMessages.minLength = this.configuration.messages.minLength || aurelia_validation_1.validationMessages.minLength;
        aurelia_validation_1.validationMessages.maxLength = this.configuration.messages.maxLength || aurelia_validation_1.validationMessages.maxLength;
        aurelia_validation_1.validationMessages.matches = this.configuration.messages.pattern || aurelia_validation_1.validationMessages.matches;
        aurelia_validation_1.validationMessages.email = this.configuration.messages.format_email || aurelia_validation_1.validationMessages.email;
    };
    StringRules.prototype.add = function () {
github jbockle / aurelia-json-schema-form / dist / commonjs / rules / string-rules.js View on Github external
StringRules.prototype.setCustomMessages = function () {
        aurelia_validation_1.validationMessages.minLength = this.configuration.messages.minLength || aurelia_validation_1.validationMessages.minLength;
        aurelia_validation_1.validationMessages.maxLength = this.configuration.messages.maxLength || aurelia_validation_1.validationMessages.maxLength;
        aurelia_validation_1.validationMessages.matches = this.configuration.messages.pattern || aurelia_validation_1.validationMessages.matches;
        aurelia_validation_1.validationMessages.email = this.configuration.messages.format_email || aurelia_validation_1.validationMessages.email;
    };
    StringRules.prototype.add = function () {
github jbockle / aurelia-json-schema-form / dist / commonjs / rules / string-rules.js View on Github external
StringRules.prototype.setCustomMessages = function () {
        aurelia_validation_1.validationMessages.minLength = this.configuration.messages.minLength || aurelia_validation_1.validationMessages.minLength;
        aurelia_validation_1.validationMessages.maxLength = this.configuration.messages.maxLength || aurelia_validation_1.validationMessages.maxLength;
        aurelia_validation_1.validationMessages.matches = this.configuration.messages.pattern || aurelia_validation_1.validationMessages.matches;
        aurelia_validation_1.validationMessages.email = this.configuration.messages.format_email || aurelia_validation_1.validationMessages.email;
    };
    StringRules.prototype.add = function () {
github jbockle / aurelia-json-schema-form / dist / commonjs / rules / common-rules.js View on Github external
CommonRules.prototype.setCustomMessages = function () {
        aurelia_validation_1.validationMessages.const = this.configuration.messages.const || aurelia_validation_1.validationMessages.equals;
    };
    CommonRules.prototype.add = function () {
github jbockle / aurelia-json-schema-form / dist / commonjs / rules / string-rules.js View on Github external
StringRules.prototype.setCustomMessages = function () {
        aurelia_validation_1.validationMessages.minLength = this.configuration.messages.minLength || aurelia_validation_1.validationMessages.minLength;
        aurelia_validation_1.validationMessages.maxLength = this.configuration.messages.maxLength || aurelia_validation_1.validationMessages.maxLength;
        aurelia_validation_1.validationMessages.matches = this.configuration.messages.pattern || aurelia_validation_1.validationMessages.matches;
        aurelia_validation_1.validationMessages.email = this.configuration.messages.format_email || aurelia_validation_1.validationMessages.email;
    };
    StringRules.prototype.add = function () {