useTextValidation
Overview
Registers reactive text validation watches on a field context.
Signature
useTextValidation(fieldContext, options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| fieldContext | FieldContext | yes | The field context to validate against. |
| options | TextValidationOptions | yes | Constraint configuration (typically the component props object). |
Returns
void
Source
client/lib/use/validation/useTextValidation.js:24