Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MaximumLengthValidator

A validator that validates whether the length of the input exceeds the limit specified by the length property.

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.

length

length: number

Gets or sets a value that represents the requirement for the length of the input for this field.

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 lengthProperty

lengthProperty: Property

Identifies the length 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