interface
FieldLiveValidation
Read live server feedback status and retry a failed check from a custom field component.
Properties and methods
| Property | Type | Description |
|---|---|---|
status | "idle" | | Read-only state for the current field. See the status descriptions below. |
retry | () => void | Request another check with the current form values after a failure. Returns immediately; follow status for the result. Ridu owns requests and cancellation. |
How it works
Read this through field.liveValidation. Validation messages are in field.issues; this object reports whether the check ran.
idle: no live check is active for this field, for example before editing or after the form resets.
pending: a check is scheduled or in progress.
checked: the server evaluated the live check. Read field.issues for any messages; checked does not mean the value passed or that Save will succeed.
skipped: the current input could not be checked, for example because its value or enclosing row could not be decoded. It is not a successful validation result.
failed: the feedback request could not complete. Show a retry control and call retry(); this is separate from an issue returned for invalid content.
Full signature
interface FieldLiveValidation { ... }Methods
FieldLiveValidation.retry()Retry a failed check using current form values. Ridu owns cancellation and requests.