Function: registerCustomCreateProject()
function registerCustomCreateProject(customCreateProject: CustomCreateProject): void
Register a new way to create Headlamp 'Projects'
Parameters
| Parameter | Type | Description |
|---|---|---|
customCreateProject | CustomCreateProject | Definition for custom creator |
Returns
void
Example
registerCustomCreateProject({
id: "custom-create",
name: "Create Helm Project",
description: "Create new project from Helm chart",
Component: ({onBack}) => <div>
Create project
<input name="helm-chart-id" />
<button>Create</button>
<button onClick={onBack}>Back</button>
</div>,
})