Skip to main content

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

Surface.setEnabled() method

Sets whether the given vertex is enabled for connection drag/drop.

Signature:

setEnabled(v: Vertex, state: boolean): boolean;

Parameters

ParameterTypeDescription
vVertexThe vertex to set enabled state for. In the UI this could resolve to an element, or to an Endpoint.
stateboolean

Returns:

boolean