feat(ui): adds admin.components.listControlsMenu option (#10981)
### What? Adds new option `admin.components.listControlsMenu` to allow custom components to be injected after the existing list controls in the collection list view. ### Why? Needed to facilitate import/export plugin. #### Preview & Testing Use `pnpm dev admin` to see example component and see test added to `test/admin/e2e/list-view`. <img width="1443" alt="Screenshot 2025-02-04 at 4 59 33 PM" src="https://github.com/user-attachments/assets/dffe3a4b-5370-4004-86e6-23dabccdac52" /> --------- Co-authored-by: Dan Ribbens <DanRibbens@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7a73265bd6
commit
7277f17f14
@@ -158,6 +158,7 @@ The following options are available:
|
||||
| **`beforeListTable`** | An array of components to inject _before_ the built-in List View's table |
|
||||
| **`afterList`** | An array of components to inject _after_ the built-in List View |
|
||||
| **`afterListTable`** | An array of components to inject _after_ the built-in List View's table |
|
||||
| **`listControlsMenu`** | An array of components to render as buttons within a menu next to the List Controls (after the Columns and Filters options) |
|
||||
| **`Description`** | A component to render below the Collection label in the List View. An alternative to the `admin.description` property. |
|
||||
| **`edit.SaveButton`** | Replace the default Save Button with a Custom Component. [Drafts](../versions/drafts) must be disabled. |
|
||||
| **`edit.SaveDraftButton`** | Replace the default Save Draft Button with a Custom Component. [Drafts](../versions/drafts) must be enabled and autosave must be disabled. |
|
||||
|
||||
Reference in New Issue
Block a user