Optional
options: Partial<CbnDataviewDragManagerOptions>Private
_dragPrivate
_dragPrivate
_targetPrivate
_targetEvent that fires while an item is being dragged. You SHOULD overwrite this event to handle placement of the dragged element inside the target element.
Positioning the drag image while dragging and checking if the dragged element is hovered over the target is done by the package.
Event that fires after dragging the item ended.
You can overwrite this with your own implementation.
Deleting the drag image is done by the package.
Event that fires before the dataview item gets dragged. You SHOULD overwrite this event to handle your own data. In the overwrite, you should use setDragData to give the package all the information it needs about the drag image.
Drag image creation is handeled by the package.
Private
_initCreate the Drag Image with its correct dimensions also respecting the current viewers zoom value.
The element where the dragged item should be droppable and added to.
The current zoom lvl of the viewer.
The width of the image that should be created.
The height of the image that should be created.
The url/src of the image that should be created.
Private
defaultPrivate
defaultPrivate
defaultSet the Drag-State.
Creates a new DataviewDragManager instance which handles the events of dragging a dataview item. Provide the dataview control, the target element selector (where the items are supposed to be dragged into) and optionally provide the class of the disabled dataview items. You can also provide whether or not you want the manager to handle touch events and the class of the dataview item images.
Provide a type to define how your drag data will look like. The drag data can be used to "transfer" data from an event to another one. The given type will be applied to the item property of DragData