class ValidationTest
A class that represents a form validation test, passed to a form validation function.
static
class ValidationTest<TValue>
Instance Members
- name readonlyThe name of the form field being validated.
- value readonlyThe current form field value to be validated.
- required(errorMessage?)Throws an error when the current value is undefined, null, false, or an empty string.
- assert(condition, errorMessage)Throws an error if the specified condition is false.
Related
- class UIFormContextAn object that contains form field data along with validation tests.