EmberColumnData.RegexValidation Class
Extends EmberColumnData.EmptyValidation
Defined in:
Module: ember-column-data-validationaddon/validations/RegexValidation.js:4
Parent Module: ember-column-data
Validate on a regex. Pass type = 1 to get this.
Methods
validateValue
(
Boolean
private
-
value
-
record
Method to validate.
Parameters:
-
value
AnyValue to validate.
-
record
ClassRecord to validate on.
Returns:
Boolean:
Properties
invalidMessage
String
Message to show when the validation fails.
negate
Boolean
Boolean that says whether to negate the result or not.
regex
String
Regex to valide with.
regexFlags
String
Regex flags to use while creating the regex object.
regexObject
RegExp
RegExp object create using regex and regexFlags.