Skip to main content

AddActionBarItem

addActionBarItem

Adds a button 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
export default [
addActionBarItem({
id: 'print-invoice',
label: 'Print Invoice',
locationId: 'order-detail',
routerLink: ['/extensions/invoicing'],
}),
];
Signature
function addActionBarItem(config: ActionBarItem): Provider

Parameters

config

parameter