diff --git a/docs/reference/fieldApi.md b/docs/reference/fieldApi.md index a25da1f3..3c1a12d5 100644 --- a/docs/reference/fieldApi.md +++ b/docs/reference/fieldApi.md @@ -267,6 +267,11 @@ A class representing the API for managing a form field. - Inserts a value at the specified index, shifting the subsequent values to the right. +- ```tsx + replaceValue(index: number, value: TData): void + ``` + - Replaces a value at the specified index. + - ```tsx removeValue(index: number): void ``` diff --git a/docs/reference/formApi.md b/docs/reference/formApi.md index e6558e10..b6821732 100644 --- a/docs/reference/formApi.md +++ b/docs/reference/formApi.md @@ -170,6 +170,10 @@ A class representing the Form API. It handles the logic and interactions with th insertFieldValue>(field: TField, index: number, value: DeepValue, opts?: { touch?: boolean }) ``` - Inserts a value into an array field at the specified index, shifting the subsequent values to the right. +- ```tsx + replaceFieldValue>(field: TField, index: number, value: DeepValue, opts?: { touch?: boolean }) + ``` + - Replaces a value into an array field at the specified index. - ```tsx removeFieldValue>(field: TField, index: number, opts?: { touch?: boolean }) ```