Class ValidationState

Classdesc

Holds the validation results and messages for a particular point in time.

Param

Hierarchy

  • ValidationState

Constructors

Properties

formFieldConfigs: FieldValidationConfigs

Accessors

  • get invalid(): boolean
  • Returns whether the ValidationState is invalid.

    Returns

    boolean indicating whether the ValidationState is invalid.

    Returns boolean

  • get valid(): boolean
  • Returns whether the ValidationState is valid.

    Returns

    boolean indicating whether the ValidationState is valid.

    Returns boolean

Methods

  • Returns an array of error messages for the entire ValidationState.

    Returns

    An array of error messages.

    Returns string[]

  • Returns an array of error messages for a given field.

    Returns

    An array of error messages.

    Parameters

    • fieldSelector: string

      The selector of the field to get the errors for.

    Returns string[]

Generated using TypeDoc