Class: ElementActions

JSValidator.Element. ElementActions

new ElementActions()

Element specific actions after the validation was binded to a specific event.
Source:

Methods

addPostValidationProcess(fn) → {JSValidator.Element.ElementActions}

ELEMENT API: Add post validation process This is the last end point of the validation process on the element event
Parameters:
Name Type Description
fn function The callback to execute behind the action
Source:
Returns:
Type
JSValidator.Element.ElementActions

addPreValidationProcess(fn) → {JSValidator.Element.ElementActions}

ELEMENT API: Add pre validation process This is the first end point of the validation process on the element event
Parameters:
Name Type Description
fn function The callback to execute behind the action
Source:
Returns:
Type
JSValidator.Element.ElementActions

bindFields(targetField) → {JSValidator.Field.FieldActions}

ELEMENT API: Start point to get FIELD API from ELEMENT API bind a group of fields to the element validation event, returning FIELD API for define specific fields actions
Parameters:
Name Type Description
targetField JSValidator.Field | Array.<JSValidator.Field>
Source:
Returns:
Type
JSValidator.Field.FieldActions