Module ValueHosts/AbstractClasses/ValueHostBase

Exposes values from the consuming system to the validation engine. Each instance represents a single value from the consuming system. Each also has an name, used to lookup the ValueHost, and a Label, which is a UI friendly way to tell the user the source of a validation error. There are several types of ValueHosts:

  • InputValueHost - reflects values from user input. These have validation capability.
  • PropertyValueHost - reflects values from a Model. These have validation capability.
  • StaticValueHost - reflects values that are needed by validation but are not editable by the user. Often these are properties from the same Model being edited.
  • CalcValueHost - Its value is calculated when its getValue() method is called. You supply a function callback in its CalcValueHostConfig to set it up.

Base class Validators:

  • ValidatableValueHostBase - introduces the framework for validation but does not get the Validators objects involved.
  • ValidatorsValueHostBase - introduces Validators and completes the overall validation feature. InputValueHosts inherit from this

Index

Classes

Generated using TypeDoc v0.25.12