Module ValueHosts/ConcreteClasses/StaticValueHost

ValueHost implementation that does not handle validation. (See InputValueHost and PropertyValueHost for validation) Use ValueHostConfig.valueHostType = "Static" for the ValidationManager to use this class.

Generally create these when:

  • Expose a value from the UI that doesn't need validation, but its value is used by other validators.
  • Expose a global value - something not part of the form - that can be used by your Conditions, such as the current Country code used to select the right regular expression for postal codes, phone numbers, etc.
  • Store all of the remaining members of your Model. Makes ValidationManager's ValueHosts your ---Single Source of Truth (SSOT)--- for that Model. When working with a Model, you will need to write code that transfers the Model's property values into the UI elements. Since ValidationManager needs those same values, you can build your input fields/elements to get their value from ValidationManager and upon change, provide the new values back.

Index

Classes

Functions

Generated using TypeDoc v0.25.12