Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

config

defaultLevel

defaultLevel: ValidationLevel

defaultMessage

defaultMessage: string = 'Value needs to have the correct length.'

Accessors

isRequired

  • get isRequired(): boolean
  • Field is considered required when there is a min value..

    Returns boolean

level

  • get level(): ValidationLevel

message

  • get message(): string

Methods

allowAdd

  • allowAdd(value: any): boolean

allowRemove

  • allowRemove(value: any): boolean

Private cleanValue

  • cleanValue(value: any): any

validate

  • validate(value: any): null | string
  • Validates the field using the current value.

    If there is an error with the validation, return an error message string to be displayed to the user.

    Parameters

    • value: any

    Returns null | string

Generated using TypeDoc