Options
All
  • Public
  • Public/Protected
  • All
Menu

Selective Validation Rules

Hierarchy

Implements

Index

Constructors

constructor

Properties

config

config: RuleConfig

defaultLevel

defaultLevel: ValidationLevel

defaultMessage

defaultMessage: string = 'Value is invalid.'

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