You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`FormBuilderValidators.compose()` - runs each validator against the value provided.
52
+
-`FormBuilderValidators.conditional()` - conditionally runs a validator against the value provided.
53
+
54
+
Available built-in type validators include:
50
55
51
-
-`FormBuilderValidators.creditCard()` - requires the field's value to be a valid credit card number.
52
-
-`FormBuilderValidators.creditCardExpirationDate()` - requires the field's value to be a valid credit card expiration date and can check if not expired yet.
53
-
-`FormBuilderValidators.creditCardCVC()` - requires the field's value to be a valid credit card CVC number.
54
-
-`FormBuilderValidators.colorCode()` - requires the field's value to be a valid color code.
55
-
-`FormBuilderValidators.date()` - requires the field's value to be a valid date string.
56
-
-`FormBuilderValidators.dateRange()` - requires the field's value to be a within a date range.
57
-
-`FormBuilderValidators.email()` - requires the field's value to be a valid email address.
58
56
-`FormBuilderValidators.equal()` - requires the field's value to be equal to the provided object.
59
57
-`FormBuilderValidators.integer()` - requires the field's value to be an integer.
60
-
-`FormBuilderValidators.ip()` - requires the field's value to be a valid IP address.
58
+
-`FormBuilderValidators.date()` - requires the field's value to be a valid date string.
59
+
-`FormBuilderValidators.dateRange()` - requires the field's value to be a within a date range.
61
60
-`FormBuilderValidators.match()` - requires the field's value to match the provided regex pattern.
62
61
-`FormBuilderValidators.notMatch()` - requires the field's value to not match the provided regex pattern.
63
62
-`FormBuilderValidators.max()` - requires the field's value to be less than or equal to the provided number.
@@ -69,19 +68,41 @@ Available built-in validators include:
69
68
-`FormBuilderValidators.equalLength()` - requires the length of the field's value to be equal to the provided minimum length.
70
69
-`FormBuilderValidators.numeric()` - requires the field's value to be a valid number.
71
70
-`FormBuilderValidators.required()` - requires the field to have a non-empty value.
72
-
-`FormBuilderValidators.url()` - requires the field's value to be a valid URL.
73
71
-`FormBuilderValidators.uppercase()` - requires the field's value to be uppercase.
74
72
-`FormBuilderValidators.lowercase()` - requires the field's value to be lowercase.
75
-
-`FormBuilderValidators.fileExtension()` - requires the field's value to a valid file extension.
76
-
-`FormBuilderValidators.fileSize()` - requires the field's to be less than the max size.
77
73
-`FormBuilderValidators.mustBeTrue()` - requires the field's to be true.
78
74
-`FormBuilderValidators.mustBeFalse()` - requires the field's to be false.
79
75
-`FormBuilderValidators.hasSpecialChars()` - requires the field's to contain a specified number of special characters.
80
76
-`FormBuilderValidators.hasUppercaseChars()` - requires the field's to contain a specified number of uppercase characters.
81
77
-`FormBuilderValidators.hasLowercaseChars()` - requires the field's to contain a specified number of lowercase characters.
82
78
-`FormBuilderValidators.hasNumericChars()` - requires the field's to contain a specified number of numeric characters.
83
79
-`FormBuilderValidators.conditional()` - requires the field's to validate with another validator conditionally.
80
+
-`FormBuilderValidators.alphabetical()` - requires the field's to contain only alphabetical characters.
81
+
-`FormBuilderValidators.oddNumber()` - requires the field's to be an odd number.
82
+
-`FormBuilderValidators.evenNumber()` - requires the field's to be an even number.
83
+
-`FormBuilderValidators.between()` - requires the field's to be between two numbers.
84
+
-`FormBuilderValidators.inList()` - requires the field's to be in the provided list.
85
+
86
+
Available built-in use-case validators include:
87
+
88
+
-`FormBuilderValidators.creditCard()` - requires the field's value to be a valid credit card number.
89
+
-`FormBuilderValidators.creditCardExpirationDate()` - requires the field's value to be a valid credit card expiration date and can check if not expired yet.
90
+
-`FormBuilderValidators.creditCardCVC()` - requires the field's value to be a valid credit card CVC number.
91
+
-`FormBuilderValidators.colorCode()` - requires the field's value to be a valid color code.
92
+
-`FormBuilderValidators.email()` - requires the field's value to be a valid email address.
93
+
-`FormBuilderValidators.ip()` - requires the field's value to be a valid IP address.
94
+
-`FormBuilderValidators.url()` - requires the field's value to be a valid URL.
95
+
-`FormBuilderValidators.fileExtension()` - requires the field's value to a valid file extension.
96
+
-`FormBuilderValidators.fileSize()` - requires the field's to be less than the max size.
84
97
-`FormBuilderValidators.password()` - requires the field's to be a valid password that matched required conditions.
98
+
-`FormBuilderValidators.uuid()` - requires the field's to be a valid uuid.
99
+
-`FormBuilderValidators.json()` - requires the field's to be a valid json string.
100
+
-`FormBuilderValidators.latitude()` - requires the field's to be a valid latitude.
101
+
-`FormBuilderValidators.longitude()` - requires the field's to be a valid longitude.
102
+
-`FormBuilderValidators.base64()` - requires the field's to be a valid base64 string.
103
+
-`FormBuilderValidators.path()` - requires the field's to be a valid file or folder path.
104
+
-`FormBuilderValidators.portNumber()` - requires the field's to be an valid port number.
105
+
-`FormBuilderValidators.macAddress()` - requires the field's to be an valid MAC address.
0 commit comments