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