Skip to main content

AddActionBarDropdownMenuItem

addActionBarDropdownMenuItem

Adds a dropdown menu item to the ActionBar at the top right of each list or detail view. The locationId can be determined by pressing ctrl + u when running the Admin UI in dev mode.

Example

providers.ts
import { addActionBarDropdownMenuItem } from '@vendure/admin-ui/core';

export default [
addActionBarDropdownMenuItem({
id: 'print-invoice',
label: 'Print Invoice',
locationId: 'order-detail',
routerLink: ['/extensions/invoicing'],
}),
];
Signature
function addActionBarDropdownMenuItem(config: ActionBarDropdownMenuItem): Provider

Parameters

config