Class: DragAndDrop

DragAndDrop(options)

new DragAndDrop(options)

Set up an element to let children be dragged and dropped to rearrange their order. Styling and certain functionality depend on css properties (currently found in annotationui.css) targed with class names prefixed with draganddrop-
Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Description
parent HTMLElement the parent element
selector String the selector to use
dropTarget HTMLElement the element to drop onto
onDrop function <optional>
a callback to call when drop occurs }}
Source:

Classes

DragAndDrop

Methods

refresh()

Add draggable attribute to children that match the selector passed in at creation
Source: