Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > setVisible

Surface.setVisible() method#

Sets the visible state of either an Edge, or of the Edges connected to some Vertex. By default this method will, for groups and nodes, cascade down to any nested vertices.

Signature:

setVisible(obj: FilterableDataset | ArrayLike<any> | Base, state: boolean, doNotCascade?: boolean): void;

Parameters#

ParameterTypeDescription
objFilterableDataset | ArrayLike<any> | BaseEdge, Group, Node or Port, and array of these, or a FilterableDataset.
statebooleanTrue if edges should be visible, false othrewise.
doNotCascadebooleanIf true, don't cascade down to any nested vertices.

Returns:

void