Options
Menu
ngdoc

object

name

Validator

module

Validation

description

It represents a custom validator. It enables to define your own shared validation rules

Hierarchy

Index

Constructor methods

constructor

Properties

private AsyncValidationFce

AsyncValidationFce: IAsyncValidate

Error

Error: IError

IsDirty

IsDirty: boolean

Name

Name: string

Optional

Optional: IOptional

TranslateArgs

private ValidateFce

ValidateFce: IValidate

ValidationFailures

ValidationFailures: Object

ValidationFailures index signature

  • Parameters

    • name: string

    Returns IValidationFailure

Get accessors

Children

ErrorCount

  • ErrorCount(): number

ErrorMessage

  • ErrorMessage(): string

Errors

  • Errors(): Object
  • Returns Object

HasError

  • HasError(): boolean
  • Returns boolean

HasErrors

  • HasErrors(): boolean

HasErrorsDirty

  • HasErrorsDirty(): boolean

Methods

AcceptVisitor

Add

Remove

  • Remove(index: number)

Validate

  • Parameters

    • context: any

    Returns IValidationFailure

ValidateAsync

  • ValidateAsync(context: any): Q.Promise<Validation.IValidationFailure>
  • Parameters

    • context: any

    Returns Q.Promise<Validation.IValidationFailure>

Generated using TypeDoc