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
Parameter | Type | Description |
---|---|---|
v | Vertex | The vertex to set enabled state for. In the UI this could resolve to an element, or to an Endpoint. |
state | boolean |
Returns:
boolean