@mermaid-editor-sdk/headless


@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

ParameterTypeDescription
sourcestringMermaid source to inspect or update.
parentIdstringIdentifier of the parent subgraph.
idstringIdentifier of the diagram element.
titlestringDisplay title for the new nested subgraph.

Returns

string