@mermaid-editor-sdk/headless / addFlowchartSubgraph
Function: addFlowchartSubgraph()
addFlowchartSubgraph(
source,id,title):string
Defined in: source/flowchart-mutations.ts:933
Adds a flowchart subgraph.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | string | Identifier of the diagram element. |
title | string | Display title for the new subgraph. |
Returns
string