Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RangeValidator

A validator that validates whether a numeric input falls in the range specified by the minimum and maximum properties.

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.

maximum

maximum: number

Gets or sets the maximum that is accepted for values of the associated property.

minimum

minimum: number

Gets or sets the minimum that is accepted for values 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 maximumProperty

maximumProperty: Property

Identifies the maximum dependency property.

Static minimumProperty

minimumProperty: Property

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