Skip to content

isEdgeEndRelinkable

since v1.4.0

isEdgeEndRelinkable(edge, end, defaultRelinkable): boolean

Returns whether the user can relink the given end of an edge. It uses the edge’s own relinkable value when set, otherwise defaultRelinkable from the linking config. true allows both ends, 'source' or 'target' allows only that end, and any other value allows neither.

Edge

The edge to check.

EdgeEnd

The endpoint to check.

The linking.defaultRelinkable config value.

boolean | EdgeEnd

boolean

true when the user can relink that end.