Interface: DefineFieldOptions<Schema, Deps>
Defined in: core/src/definitions/define-field.ts:27
Options of defineField and defineFieldWithDeps. When schema is a function of the dependencies, write it before validateAsync, or run receives unknown.
Type Parameters
| Type Parameter |
|---|
Schema extends StandardSchemaV1 |
Deps |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
mode? | readonly | ValidationMode | When errors become visible for this field. Overrides the form's mode. | core/src/definitions/define-field.ts:33 |
reValidateMode? | readonly | ReValidateMode | When this field's errors update after a node that contains it is submitted. Overrides the form's reValidateMode. | core/src/definitions/define-field.ts:38 |
schema | readonly | SchemaOption<Schema, Deps> | A Standard Schema, or a function that builds one from the dependencies; rebuilt only when they change. | core/src/definitions/define-field.ts:29 |
validateAsync? | readonly | AsyncValidationOptions<InferSchemaOutput<Schema>, Deps> | A check against something outside the form, such as a server. | core/src/definitions/define-field.ts:31 |