Home > @jsplumbtoolkit/core > Graph > setEnableSubgraphs
Graph.setEnableSubgraphs() method
Sets whether or not Nodes are Graphs themselves, and can have child Nodes. If you enable this then you cannot use slashes (/) in your Node ids, as they will be treated as components of a path to a Node in a nested Graph.
Signature:
setEnableSubgraphs(enable: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
enable | boolean | True to enable, false to disable. |
Returns:
void