Optional
allowWhether or not to allow drop on whitespace in the canvas. Defaults to true.
Optional
allowWhether or not to allow drop on edge. Defaults to false.
Optional
allowWhether or not to allow drop on existing vertices. Defaults to true.
Optional
canvasOptional filter to test if objects may be dropped on the canvas.
Optional
canvasOptional selector specifying what parts of the surface's canvas should be considered whitespace. If you're using a decorator, for instance, you might want to add a selector for that decorator's elements so that items can be dropped onto them.
Optional
classOptional extra css classes to set on the element
Optional
dataFunction to use to get a dataset for an item that is being dragged. 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
groupFunction to use to determine whether an item that is being dragged represents a group.
Optional
onOptional callback that will be invoked after a new vertex has been dropped and added to the dataset.
CSS 3 selector identifying what child elements of container
are draggable.
Optional
surfaceThe surface to attach to. Optional: this component can derive a surface from a SurfaceProvider or SurfaceComponent.
Optional
typeFunction to use to get the type of an item that is being dragged.
Props for the
PaletteComponent