Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

config

defaultLevel

defaultLevel: ValidationLevel

defaultMessage

defaultMessage: string = 'Value is required. Cannot be empty.'

Accessors

isRequired

  • get isRequired(): boolean

level

  • get level(): ValidationLevel

message

  • get message(): string

Methods

allowAdd

  • allowAdd(value: any): boolean

allowRemove

  • allowRemove(value: any): boolean

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