Defaults to true. Allows items to be dropped onto whitespace.
Defaults to true. Allows items to be dropped onto edges in the canvas.
Defaults to true. Allows items to be dropped onto groups in the canvas.
Defaults to false. Allows items to be dropped onto nodes in the canvas. If this is true and an element is dropped onto a node, the result is the same as if the element has been dropped onto whitespace.
Optional
canvasOptional filter to test if objects may be dropped on the canvas. This method is invoked at the start of a drag and is passed the candidate drag object's data.
Optional extra selector to use when dragging to identify parts of the surface's canvas that should be considered whitespace. If you use a decorator, for instance, or have otherwise positioned elements on your canvas, these elements will not by default be considered whitespace.
Optional
dataFunction to use to generate an initial payload when the user starts to drag something from this component. Optional,
and if omitted JsPlumb will use a default data generator that extracts data values from any data-jtk-***
attribute
on the element being dragged.
Optional
dragOptional size to use for dragged elements.
Optional function to use to determine if the object that is being dragged represents a group. If this function is present, and returns true, then the drag object is considered to be a group. In all other cases the drag object is considered to be a node.
Optional
onOptional callback for when a new vertex has been added via this component.
Optional
selectorCSS3 selector identifying the child elements of the the element on which this directive was declared that act as drag sources. Optional; if omitted JsPlumb will use DEFAULT_PALETTE_SELECTOR.
Optional
surfaceID of the surface to attach to. Only required if you have more than one surface in your UI.
Optional
typeOptional function to use to determine the type of object that a user has just started dragging
This directive provides a means for you to configure the ability to drag/drop nodes and groups from some part of your UI into the canvas.