Defined in: FieldApi/FieldApi.public.ts:123
TFieldName
TFieldValue
TFieldError
TFormData
TFormError extends ScopedErrorTypes
atom: ReadonlyAtom<FieldState<TFieldValue, TFieldError>>;Defined in: FieldApi/FieldApi.public.ts:206
clearValues: FieldClearValuesFn;Defined in: FieldApi/FieldApi.public.ts:179
Clear all values from this field's array. If this field is not an array, this method will be ignored.
options
Optional update options
errors: FieldErrors<TFieldError>;Defined in: FieldApi/FieldApi.public.ts:212
filterValues: FieldFilterValuesFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:204
Filter the values in this field's array using a predicate function. If this field is not an array, this method will be ignored.
predicate
The predicate function to filter values. Returns true to keep the value, false to remove it.
options
Optional update options including a custom thisArg for the predicate
form: FormApi<TFormData, TFormError>;Defined in: FieldApi/FieldApi.public.ts:133
The form that owns this field.
handleBlur: FieldVoidFn;Defined in: FieldApi/FieldApi.public.ts:216
handleChange: FieldHandleChangeFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:214
insertValue: FieldInsertValueFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:172
Insert a new value into this field's array at the specified index. If this field is not an array, this method will be ignored.
index
The index at which to insert the value
value
The value to insert
options
Optional update options
meta: FieldMeta<TFieldError>;Defined in: FieldApi/FieldApi.public.ts:210
moveValue: FieldMoveValueFn;Defined in: FieldApi/FieldApi.public.ts:155
Move an element in this field's array from one index to another. If this field is not an array, this method will be ignored.
fromIndex
The current index of the element to move
toIndex
The index to move the element to
options
Optional update options
pushValue: FieldPushValueFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:163
Push a new value into this field's array. If this field is not an array, this method will be ignored.
value
The value to push into the array
options
Optional update options
removeValue: FieldRemoveValueFn;Defined in: FieldApi/FieldApi.public.ts:196
Remove a value from this field's array at the specified index. If this field is not an array, this method will be ignored.
index
The index of the value to remove
options
Optional update options
replaceValue: FieldReplaceValueFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:188
Replace the value at the specified index in this field's array. If this field is not an array, this method will be ignored.
index
The index of the value to replace
value
The new value
options
Optional update options
reset: FieldVoidFn;Defined in: FieldApi/FieldApi.public.ts:218
swapValues: (indexA, indexB) => void;Defined in: FieldApi/FieldApi.public.ts:146
Swap two elements in this field's array. If this field is not an array, this method will be ignored.
number
The index of the first element to swap
number
The index of the second element to swap
void
value: TFieldValue;Defined in: FieldApi/FieldApi.public.ts:208
get name(): TFieldName;Defined in: FieldApi/FieldApi.public.ts:138
The name of the field.
TFieldName