An object interface that defines a method to test if a property is valid.

interface IUFPropertyValidator {
    isValidPropertyValue(propertyName, data, value): boolean;
}

Methods

  • Checks if a value is valid for a certain property.

    Parameters

    • propertyName: string

      Name of property

    • data: IUFModel

      Data that contains the property

    • value: any

      Value to check

    Returns boolean

    True if the value is valid; false otherwise.