useFieldValidation
Overview
Dispatches to the validation composable matching the given type string. Does nothing when type is undefined or unrecognized.
Signature
useFieldValidation(type, fieldContext, options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| type | string | yes | The validation type (e.g. "text", "numeric", "decimal", "date", "datetime", "time"). |
| fieldContext | FieldContext | yes | The field context to validate against. |
| options | any | yes | Constraint configuration (typically the component props object). |
Returns
void
Source
client/lib/use/validation/useFieldValidation.js:31