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.isFalse()` - requires the field's to be false.
70
-
-`FormBuilderValidators.isTrue()` - requires the field's to be true.
71
66
72
67
### Collection validators
73
68
74
-
-`FormBuilderValidators.containsElement()` - requires the field's to be in the provided list.
75
-
-`FormBuilderValidators.equalLength()` - requires the length of the field's value to be equal to the provided minimum length.
76
-
-`FormBuilderValidators.maxLength()` - requires the length of the field's value to be less than or equal to the provided maximum size.
77
-
-`FormBuilderValidators.minLength()` - requires the length of the field's value to be greater than or equal to the provided minimum length.
78
-
-`FormBuilderValidators.range()` - requires the field's to be within a range.
79
-
-`FormBuilderValidators.unique()` - requires the field's to be unique in the provided list.
69
+
-`Validators.equalLength(expectedLength)`: Checks if the field contains a collection (must be a `String`, `Iterable`, or `Map`) with length equals `expectedLength`.
70
+
-`Validators.minLength(min)`: Checks if the field contains a collection (must be a `String`, `Iterable`, or `Map`) with length greater than or equal to `min`.
71
+
-`Validators.maxLength(max)`: Checks if the field contains a collection (must be a `String`, `Iterable`, or `Map`) with length less than or equal to `max`.
72
+
-`Validators.betweenLength(min, max)`: Checks if the field contains a collection (must be a `String`, `Iterable`, or `Map`) with length between `min` and `max`, inclusive.
-`FormBuilderValidators.dateFuture()` - requires the field's value to be in the future.
98
-
-`FormBuilderValidators.datePast()` - requires the field's value to be a in the past.
99
-
-`FormBuilderValidators.dateRange()` - requires the field's value to be a within a date range.
100
-
-`FormBuilderValidators.dateTime()` - requires the field's value to be a valid date time.
101
-
-`FormBuilderValidators.date()` - requires the field's value to be a valid date string.
102
-
-`FormBuilderValidators.time()` - requires the field's value to be a valid time string.
103
-
-`FormBuilderValidators.timeZone()` - requires the field's value to be a valid time zone.
90
+
-`Validators.isAfter(reference)`: Checks if the field contains a `DateTime` that is after `reference`.
91
+
-`Validators.isBefore(reference)`: Checks if the field contains a `DateTime` that is before `reference`.
92
+
-`Validators.isDateTimeBetween(minReference, maxReference)`: Checks if the field contains a `DateTime` that is after `minReference` and before `maxReference`.
93
+
- TODO `FormBuilderValidators.date()` - requires the field's value to be a valid date string.
94
+
- TODO `FormBuilderValidators.time()` - requires the field's value to be a valid time string.
95
+
- TODO `FormBuilderValidators.timeZone()` - requires the field's value to be a valid time zone.
- TODO `FormBuilderValidators.minWordsCount()` - requires the word count of the field's value to be greater than or equal to the provided minimum count.
175
177
- TODO `FormBuilderValidators.singleLine()` - requires the field's string to be a single line of text.
176
178
179
+
### Type Validators
180
+
-`Validators. TODO checkpoint`
181
+
177
182
### User Information validators
178
183
179
184
-`Validators.email()`: Checks if the field contains a valid email.
0 commit comments