@mermaid-editor-sdk/headless / addJourneyPaletteItem
Function: addJourneyPaletteItem()
addJourneyPaletteItem(
source,id):string
Defined in: source/journey-mutations.ts:27
Adds a journey palette item to the source.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | JourneyPaletteItemId | Identifier of the diagram element. |
Returns
string