Supplies Conditions and Validators the preceding InputValueHost in a fluent chain. It is returned by ValidationManagerConfigBuilder.input() and each chained object that follows.

This class will dynamically get fluent functions for each condition by using TypeScript's Declaration Merging: https://www.typescriptlang.org/docs/handbook/declaration-merging.html

See Fluent Overview

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

  • Parameters

    • Optional errorMessage: null | string

      The error message "template" that will appear on screen when the condition is NoMatch. It can use tokens, which are resolved with current data at the time of validation. If null, it will expect to be setup by one of several other sources including localization (validatorParameters.errorMessagel10n) and the TextLocalizationService.

    • Optional validatorParameters: FluentValidatorConfig

      Additional ways to customize the Validator, including localized error messages, severity, and the enabler.

    Returns FluentValidatorBuilder

  • For any implementation of a fluent function that works with FluentValidationRule. It takes the parameters passed into that function (conditionConfig and validatorConfig) and assemble the final ValidatorConfig, which it adds to the InputValueHostConfig.

    Parameters

    • conditionType: null | string

      When not null, this will be assigned to conditionConfig for you.

    • conditionConfig: null | Partial<ConditionConfig>

      if null, expects validatorConfig to supply either conditionConfig or conditionCreator. If your fluent function supplies stand-alone parameters that belong in conditionConfig, assign them to conditionConfig.

    • errorMessage: undefined | null | string

      optional error message. Will overwrite any from validatorConfig if supplied.

    • validatorConfig: undefined | null | FluentValidatorConfig

      does not expect conditionConfig to be setup, but if it is, it will be replaced when conditionConfig is not null.

    Returns void

Generated using TypeDoc v0.25.12