Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RegExValidator

A validator that validates whether the input matches the provided regular expression.

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.

regEx

regEx: string

Gets or sets the regular expression that is used to check the input of the associated property.

successMessage

successMessage: string

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

Static errorMessageProperty

errorMessageProperty: Property

Identifies the errorMessage dependency property.

Static regExProperty

regExProperty: Property

Identifies the regEx dependency property.

Static successMessageProperty

successMessageProperty: Property

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

Generated using TypeDoc