Type alias InValidator<TValue>

InValidator<TValue>: EventKeeper<Message[]> | ((this, control) => EventKeeper<Message[]>) | Simple<TValue>

Input validator.

Validator can be added to input validation aspect using InValidation.by() method. After that all validation messages it sends are reported by validation aspect. Multiple messages could be sent at a time. These messages replace the previously sent ones. To report the absence of error just send an empty event without messages.

This can be one either a validation messages event keeper, a function returning one and accepting input control as its only parameter, or simple validator instance.

Type Parameters

  • TValue

    Input value type.

Generated using TypeDoc