Interface XmValidatorCallbacks

Mapping between the possible events the form validator supports, and the signature of the event listener. See also XmValidator.on.

Hierarchy

  • XmValidatorCallbacks

Index

Properties

begin

begin: function

When a validation process starts. The entire form might be validated, or only a subset of elements.

This event happens after requestBegin, after the element state update, e.g. after conditions such as hidden-if or read-only-if were evaluated.

Each begin ends with a finish.

param

Data with the items to be validated.

returns

Options callback result, e.g. with the items to validate instead.

Type declaration

finish

finish: function

When form validation finishes.

This event happens before requestFinish.

Each begin ends with a finish.

param

Data with the items to were validated.

Type declaration

progress

progress: function

When progress is made during form validation, i.e. every time a single form field was validated. Form validation consists of validation a set of form elements, possibly the entire form.

This event happens between begin and finish.

param

Data with the item that was validated, and the list of items to be validated.

Type declaration

requestBegin

requestBegin: function

When a validation was requested, usually via $.fn.validate.

This event happens before begin, before the element state update, e.g. before conditions such as hidden-if or read-only-if were evaluated.

Each requestBegin ends with a requestFinish.

Type declaration

requestFinish

requestFinish: function

When a requested validation was finished.

This event happens after finish.

Each requestBegin ends with a requestFinish.

Type declaration