Interface IValidations

Interface representing various validation rules for a field.

interface IValidations {
    compare?: IValueValidation<string>;
    date?: IValidation;
    digits?: IValidation;
    disallowedDaysOfWeek?: number[];
    email?: IValidation;
    errorRef?: string;
    maxDate?: IValueValidation<Date>;
    maxLength?: IValueValidation<number>;
    maxValue?: IValueValidation<number>;
    minDate?: IValueValidation<Date>;
    minDigitsLength?: IValueValidation<number>;
    minLength?: IValueValidation<number>;
    money?: IValidation;
    number?: IValidation;
    positiveNumber?: IValidation;
    required?: IValidation;
    validateHidden?: boolean;
}

Properties

compare?: IValueValidation<string>

Compares the field with another field specified by its ID.

Indicates if the field should be validated as a date.

digits?: IValidation

Indicates if the field should be validated as digits.

disallowedDaysOfWeek?: number[]

Disallowed days of the week for the field.

email?: IValidation

Indicates if the field should be validated as an email.

errorRef?: string

JQuery selector of the element to add the error after.

maxDate?: IValueValidation<Date>

Maximum date validation for the field.

maxLength?: IValueValidation<number>

Maximum length validation for the field.

maxValue?: IValueValidation<number>

Maximum value validation for the field.

minDate?: IValueValidation<Date>

Minimum date validation for the field.

minDigitsLength?: IValueValidation<number>

Minimum digits length validation for the field.

minLength?: IValueValidation<number>

Minimum length validation for the field.

money?: IValidation

Indicates if the field should be validated as a monetary value.

number?: IValidation

Indicates if the field should be validated as a number.

positiveNumber?: IValidation

Indicates if the field should be validated as a positive number.

required?: IValidation

Indicates if the field is required.

validateHidden?: boolean

Indicates if the field should be validated even if it is hidden.