@mermaid-editor-sdk/headless / appendPaletteEntry
Function: appendPaletteEntry()
appendPaletteEntry(
source,type,entry):string
Defined in: runtime/diagram-catalog.ts:87
Adds a palette entry's source to a Mermaid diagram.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to update. |
type | EditableDiagramType | Editable diagram type whose palette entry is being inserted. |
entry | PaletteEntry | Palette entry to insert. |
Returns
string