Skip to main content

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

ParameterTypeDescription
enablebooleanTrue to enable, false to disable.

Returns:

void