EmberColumnData.CSVRegexValidation Class
Extends EmberColumnData.RegexValidation
Defined in:
Module: ember-column-data-validationaddon/validations/CSVRegexValidation.js:4
Parent Module: ember-column-data
Validate on a regex on each value in a Comma Seperated Value. Pass type = 2 to get this.
Item Index
Methods
Properties
Methods
validateValue
(
Boolean
private
-
value
-
record
Method to validate.
Parameters:
-
value
AnyValue to validate. -
record
ClassRecord to validate on.
Returns:
Boolean:
Properties
delimeter
String
Delimeter to use to split values in the CSV.
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.