Add admin configuration for Array fields to choose location of the new array item button. #2616
notchris
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reference: https://payloadcms.com/docs/fields/array#admin-config
The Array field type does not let the user select where the "New item" button should be displayed. By default, it displays under the array list, which may become a UI issue if the list is large.
I propose a new option be added to the admin configuration for Arrays, "newItemButtonLocation" (or something similar) that takes a string, "above", "below".
When "above" is selected, render the button in-line with the collapse options (or above those).
Beta Was this translation helpful? Give feedback.
All reactions