Skip to main content

Function: registerProjectHeaderAction()

function registerProjectHeaderAction(projectHeaderAction: ProjectHeaderAction): void;

Defined in: plugin/registry.tsx:1169

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​

ParameterTypeDescription
projectHeaderActionProjectHeaderActionThe action configuration to register

Returns​

void

Example​

registerProjectHeaderAction({
id: 'deploy-app',
component: ({ project }) => (
<Button onClick={() => navigate(`/deploy/${project.id}`)}>
Deploy App
</Button>
)
});