Files
payloadcms/test/admin/components
Jessica Rynkar 625d8d9319 feat(ui): adds new editMenuItems custom component (#12649)
## What
Adds a new custom component called `editMenuItems` that can be used in
the document view.
This options allows users to inject their own custom components into the
dropdown menu found in the document controls (the 3 dot menu), the
provided component(s) will be added below the default existing actions
(Create New, Duplicate, Delete and so on).

## Why
To increase flexibility and customization for users who wish to add
functionality to this menu. This provides a clean and consistent way to
add additional actions without needing to override or duplicate existing
UI logic.

## How
- Introduced the `editMenuItems` slot in the document controls dropdown
(three-dot menu) - in edit and preview tabs.
- Added documentation and tests to cover this new custom component

#### Testing
Use the `admin` test suite and go to the `edit menu items` collection
2025-06-03 14:57:48 +01:00
..
2024-08-13 12:54:33 -04:00
2024-08-13 12:54:33 -04:00
2024-11-11 13:59:05 -05:00
2024-08-13 12:54:33 -04:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-03-08 12:33:44 -05:00
2024-11-11 13:59:05 -05:00
2025-05-22 10:04:45 -04:00
2024-08-13 12:54:33 -04:00
2024-11-11 13:59:05 -05:00