Skip to content
Playground

Inputs validation mode

type InputsValidationMode = number;
/** Validation is triggered on input event */
const ON_INPUT = 1;
/** Validation is triggered on change event */
const ON_CHANGE = 2;
/** Validation is triggered on blur event */
const ON_BLUR = 4;
/** Validation is not triggered before first change event */
const AFTER_CHANGED = 8;
/** Validation is not triggered before first blur event */
const AFTER_TOUCHED = 16;
/** Validation is not triggered before first form submission */
const AFTER_SUBMITTED = 32;