From e8c02153defad1f060112dff5e1531dc2785ea7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20V=C3=A4is=C3=A4nen?= Date: Tue, 18 Jan 2022 16:43:59 +0200 Subject: [PATCH] [Doc] customizing and disabling item reordering for ArrayInput --- docs/Inputs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Inputs.md b/docs/Inputs.md index 4fb19124c22..e3b260ec2d4 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -1228,7 +1228,7 @@ import { ArrayInput, SimpleFormIterator, DateInput, TextInput } from 'react-admi `` expects a single child, which must be a *form iterator* component. A form iterator is a component accepting a `fields` object as passed by [react-final-form-array](https://github.com/final-form/react-final-form-arrays#fieldarrayrenderprops), and defining a layout for an array of fields. For instance, the `` component displays an array of react-admin Inputs in an unordered list (`
    `), one sub-form by list item (`
  • `). It also provides controls for adding and removing a sub-record (a backlink in this example). -You can pass `disableAdd` and `disableRemove` as props of `SimpleFormIterator`, to disable `ADD` and `REMOVE` button respectively. Default value of both is `false`. +You can pass `disableAdd`, `disableRemove` and `disableReordering` as props of `SimpleFormIterator`, to disable `ADD`, `REMOVE` and the `UP/DOWN` button(s) respectively. Default value of each is `false`. ```jsx import { ArrayInput, SimpleFormIterator, DateInput, TextInput } from 'react-admin'; @@ -1241,7 +1241,7 @@ import { ArrayInput, SimpleFormIterator, DateInput, TextInput } from 'react-admi ``` -You can also use `addButton` and `removeButton` props to pass your custom add and remove buttons to `SimpleFormIterator`. +You can also use `addButton`, `removeButton` and `reOrderButtons` props to pass your custom add, remove and reordering buttons to `SimpleFormIterator`. ```jsx import { ArrayInput, SimpleFormIterator, DateInput, TextInput } from 'react-admin';