OptionalallowWhether or not to allow drop on whitespace in the canvas. Defaults to true.
OptionalallowWhether or not to allow drop on edge. Defaults to false.
OptionalallowWhether or not to allow drop on existing vertices. Defaults to true.
OptionalcanvasOptional filter to test if objects may be dropped on the canvas.
OptionalcanvasOptional 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.
OptionalclassOptional extra css classes to set on the element
OptionaldataFunction 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.
OptionaldragOptional size to use for dragged elements.
OptionalgroupFunction to use to determine whether an item that is being dragged represents a group.
OptionalonOptional 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.
OptionalsurfaceThe surface to attach to. Optional: this component can derive a surface from a SurfaceProvider or SurfaceComponent.
OptionaltypeFunction to use to get the type of an item that is being dragged.
Props for the
PaletteComponent