VALIDATE_ON

enum
Form & Input

TypeScript enum for the validation trigger of form fields — blur, input, submit, and lazy variants.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

VALIDATE_ON.BLUR
Validate when the field loses focus.
VALIDATE_ON.INPUT
Validate on every keystroke / value change.
VALIDATE_ON.SUBMIT
Validate only when the form is submitted.
VALIDATE_ON.LAZY_BLUR
Lazy + blur — defers the first validation until blur, then validates on each change.
VALIDATE_ON.LAZY_INPUT
Lazy + input — defers the first validation, then validates on each input event.
VALIDATE_ON.LAZY_SUBMIT
Lazy + submit — defers until first submit, then validates normally.
VALIDATE_ON.BLUR_LAZY
Alias of LAZY_BLUR — blur then lazy re-validation.
VALIDATE_ON.INPUT_LAZY
Alias of LAZY_INPUT — input then lazy re-validation.
VALIDATE_ON.SUBMIT_LAZY
Alias of LAZY_SUBMIT — submit then lazy re-validation.
VALIDATE_ON.LAZY
Defers all validation until explicitly triggered (e.g. form submit).

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Using the enum in script setup

typescript