Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NonEmptyValidator

A validator that validates whether there is any input.

Hierarchy

Index

Properties

errorMessage

errorMessage: string

Gets or sets a message that will be displayed when the new value doesn't meet the validation criteria.

successMessage

successMessage: string

Gets or sets a message that will be displayed when the new value meets the validation criteria.

Static errorMessageProperty

errorMessageProperty: Property<PropertyValidator, string>

Identifies the errorMessage dependency property.

Static successMessageProperty

successMessageProperty: Property<PropertyValidator, string>

Identifies the successMessage dependency property.

Methods

validate

  • validate(value: any, propertyName: string): boolean
  • Returns whether the provided value is valid for the property with propertyName.

    Parameters

    • value: any
    • propertyName: string

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method