- atLeastOne, at least one of the
controls
should satisfy the provided validator
.
atLeastOne = (validator, controls: string[] | null) => ...
- atLeastOneConditionally, at least one of the
controls
should satisfy the provided validator
if the dependedControl
has the dependedValue
.
atLeastOneConditionally = (
validator: ValidatorFn,
dependedControl: string,
dependedValue: any,
controls: string[] | null = null
) => ...
- requiredConditionally, make
controls
required, if the dependedControl
has the dependedValue
.
requiredConditionally = (
dependedControl: string,
dependedValue: any,
controls: string[] | null = null
) => ...
- requiredConditionally2, make
controls
required, if the dependedControl
has the dependedValue
and the dependedControl2
has the dependedValue2
.
requiredConditionally2 = (
dependedControl: string, dependedValue: any) =>
(
dependedControl2: string,
dependedValue2: any,
controls: string[] | null = null
) => ...
- conditionalValidator, apply
validator
if predicate
return true.
conditionalValidator =
(predicate: () => boolean, validator: ValidatorFn) => ...