Optional
allowDefaults to true. If false, the user will not be permitted to drag a connection from the current node to itself.
Optional
anchorSpec for the anchor to use for both source and target.
Optional
anchorThis function offers a means for you to provide the anchor to use for a new drag, or a drop. You're given the source/target element, the proportional location on the element that the drag started/drop occurred, the associated type descriptor, and the originating event. Return null if you don't wish to provide a value, and any other return value will be treated as an AnchorSpec.
Optional
anchors[source, target] anchor specs for edges.
Optional
canOptional function that is used to determine whether at the start of a drag, a given element is able to accept new connections. For a source element returning false from here aborts the connection drag. For a target element returning false from here means the target element is not active as a drop target.
Optional
connectionsWhether or not connections created from this endpoint should be detachable via the mouse. Defaults to true.
Optional
connectorSpec for connectors created for this type.
Optional
connectorClass to add to any connectors created for this type.
Optional
connectorPaint style for connectors created for this type when pointer is hovering over the component.
Optional
connectorPaint style for connectors created for this type.
Optional
cssCSS class to add to the given component's representation in the UI
Optional
edgeOptional type for connections dragged from a source selector. This option is ignored for target selectors.
Optional
endpointSpec for an endpoint created for this type.
Optional
extractOptional set of values to extract from an element when a drag starts from that element. For target selectors this option is ignored.
Optional
hoverPaint style to use for the component when the pointer is hovering over it.
Optional
maxMaximum number of connections this endpoint can support. Defaults to 1. A value of -1 means unlimited.
Optional
mergeWhen merging a type description into its parent(s), values in the child for connector
, anchor
and anchors
will
always overwrite any such values in the parent. But other values, such as overlays
, will be merged with their
parent's entry for that key. You can force a child's type to override every corresponding value in its parent by
setting mergeStrategy:'override'
.
Optional
onOptional function to call if the user begins a new connection drag when the associated element is full.
Optional
event: anyOptional
overlaysArray of overlays to add.
Optional
paintPaint style to use for the component.
Optional
parameterA function that can be used to extract a set of parameters pertinent to the connection that is being dragged from a given source or dropped on a given target.
Optional
parametersOptional set of parameters to store on the component that is generated from this type.
Optional
parentOptional 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)
Optional
portOptional logical id for the endpoint associated with a source or target selector.
Optional
rankOptional rank for a given source or target selector. When selecting a selector from a list of candidates, rank can be used to prioritise them. Higher values take precedence.
Optional
reattachWhether or not when a user detaches a connection that was created from this endpoint it should be automatically reattached. Defaults to false.
Optional
redropOptional policy for dropping existing connections that have been detached by their source/target.
'strict' (RedropPolicy.STRICT
) indicates that a connection can only be dropped back onto a part of
an element that matches the original source/target's selector.
'any' (RedropPolicy.ANY
) indicates that a connection can be dropped anywhere onto an element.
'anySource' (RedropPolicy.ANY_SOURCE
) indicates that a connection can be dropped onto any part of an element that
is configured as a source selector.
'anyTarget' (RedropPolicy.ANY_TARGET
) indicates that a connection can be dropped onto any part of an element that
is configured as a target selector.
'anySourceOrTarget' (RedropPolicy.ANY_SOURCE_OR_TARGET
) indicates that a connection can be dropped onto any part of an element that
is configured as a source selector or a target selector.
Optional
scopeProvides a simple means for controlling connectivity in the UI.
Optional
sourceWhether or not an endpoint created from this definition should subsequently behave as a source for dragging connections with the mouse.
Optional
targetWhether or not an endpoint created from this definition should subsequently behave as a target for dragging connections with the mouse.
Optional
uniqueIf true, only one endpoint will be created on any given element for this type descriptor, and subsequent connections will all attach to that endpoint. Defaults to false.
Extends EndpointTypeDescriptor to add the options supported by an
addSourceSelector
oraddTargetSelector
call.