Defined in: FieldApi/FieldApi.public.ts:100
TFieldName
TFieldValue
TFieldError
TFormData
TFormErrorTypes extends FormErrorTypes
atom: ReadonlyAtom<FieldState<TFieldValue, TFieldError>>;Defined in: FieldApi/FieldApi.public.ts:174
clearValues: FieldClearValuesFn;Defined in: FieldApi/FieldApi.public.ts:156
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:180
filterValues: FieldFilterValuesFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:172
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, TFormErrorTypes>;Defined in: FieldApi/FieldApi.public.ts:110
The form that owns this field.
handleBlur: FieldVoidFn;Defined in: FieldApi/FieldApi.public.ts:184
handleChange: FieldHandleChangeFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:182
insertValue: FieldInsertValueFn<TFieldValue>;Defined in: FieldApi/FieldApi.public.ts:149
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:178
moveValue: FieldMoveValueFn;Defined in: FieldApi/FieldApi.public.ts:132
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:140
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:164
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
reset: FieldVoidFn;Defined in: FieldApi/FieldApi.public.ts:186
swapValues: (indexA, indexB) => void;Defined in: FieldApi/FieldApi.public.ts:123
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:176
get name(): TFieldName;Defined in: FieldApi/FieldApi.public.ts:115
The name of the field.
TFieldName