Skip to main content

Home > @jsplumb/core > BehaviouralTypeDescriptor

BehaviouralTypeDescriptor interface#

Extends EndpointTypeDescriptor to add the options supported by an addSourceSelector or addTargetSelector call.

Signature:

export interface BehaviouralTypeDescriptor<T = any> extends EndpointTypeDescriptor 

Extends: EndpointTypeDescriptor

Properties#

PropertyTypeDescription
allowLoopback?boolean(Optional) Defaults to true. If false, the user will not be permitted to drag a connection from the current node to itself.
edgeType?string(Optional)
extract?Dictionary<string>(Optional)
onMaxConnections?(value: any, event?: any) => any(Optional) Optional function to call if the user begins a new connection drag when the associated element is full.
parameterExtractor?(el: T, eventTarget: T) => Dictionary<string>(Optional) A function that can be used to extract a set of parameters pertinent to the connection that is being dragged from a given source.
parentSelector?string(Optional) Optional selector identifying the ancestor of the event target that could be the element to which connections are added. By default this is the internal attribute jsPlumb uses to mark managed elements (data-jtk-managed)
portId?string(Optional)
rank?number(Optional)
redrop?RedropPolicy(Optional)
uniqueEndpoint?boolean(Optional)