Function: registerProjectHeaderAction()
function registerProjectHeaderAction(projectHeaderAction: ProjectHeaderAction): void;
Defined in: plugin/registry.tsx:1292
Register a new action button in the project details header.
This allows plugins to add custom action buttons next to the delete button in the project details page header.
Parameters
| Parameter | Type | Description |
|---|---|---|
projectHeaderAction | ProjectHeaderAction | The action configuration to register |
Returns
void
Example
registerProjectHeaderAction({
id: 'view-resources',
component: ({ setSelectedTab }) => (
<Button onClick={() => setSelectedTab?.('headlamp-projects.tabs.resources')}>
View resources
</Button>
)
});