ng-bootstrap-form-generator
Version:
Angular 2 + Bootstrap 4 Form Generator. Library provides Angular components that help quickly generate Bootstrap Form from JavaScript object. Component supports validators, help messages, and error messages.
17 lines • 658 B
JavaScript
export var ValidationMessage = (function () {
function ValidationMessage() {
}
ValidationMessage.DEFAULT = {
required: function (error, c) {
return c.title + " is required";
},
minlength: function (error, c) {
return "Min length is " + error.requiredLength + " charecters. Current length is " + error.actualLength;
},
maxlength: function (error, c) {
return "Max length is " + error.requiredLength + " charecters. Current length is " + error.actualLength;
}
};
return ValidationMessage;
}());
//# sourceMappingURL=ValidationMessage.js.map