Class InValidation<TValue>Abstract

Validation aspect of the input.

Reports validation messages sent by registered validators. To register validator call a InValidation.by() method.

Implements an EventKeeper interface by sending validation result whenever validation messages reported.

A validation aspect of converted control reports all messages from original control in addition to its own.

A validation aspect of input controls container reports all messages from nested controls in addition to its own.

Type Parameters

  • TValue

    Input value type.

Hierarchy

  • InValidation

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

read: AfterEvent<[InValidation.Result]>

An AfterEvent keeper of input validation result.

An [AfterEvent__symbol] property is an alias of this one.

Accessors

Methods

  • Validates the input using the given validators.

    Messages sent by each registered validator are handled independently. This means that every time the event received from validator, it replaces the list of validation messages reported previously by the same validator. But it never affects messages received from other validators.

    Parameters

    • Rest ...validators: InValidator<TValue>[]

      Input validators to use.

    Returns Supply

    Validators supply. Removes validators and their messages once cut off.

Generated using TypeDoc