Home Reference Source

References

Draggable

summary
public

This is the core draggable library that does the heavy lifting

public

V defaultOptions: {"draggable": string, "handle": *, "delay": *, "distance": *, "placedTimeout": number, "plugins": *, "sensors": *, "exclude": *}

Draggable/DragEvent

summary
public

Base drag event

public

Drag move event

public

Drag out container event

public

Drag out event

public

Drag over container event

public

Drag over event

public

Drag pressure event

public

Drag start event

public

Drag stop event

public

Drag stopped event

Draggable/DraggableEvent

summary
public

Draggable destory event

public

Base draggable event

public

Draggable initialized event

Draggable/Emitter

summary
public

The Emitter is a simple emitter class that provides you with on(), off() and trigger() methods

Draggable/Plugins/Announcement

summary
public

Announcement plugin

public

Announcement default options

Draggable/Plugins/Focusable

summary
public

Focusable plugin

Draggable/Plugins/Mirror

summary
public

C Mirror

Mirror plugin which controls the mirror positioning while dragging

public

Mirror default options

public
public

V onDragMove: *

public
public

V onDragStop: *

public
public
public

V onScroll: *

Draggable/Plugins/Mirror/MirrorEvent

summary
public

Mirror attached event

public

Mirror create event

public

Mirror created event

public

Mirror destroy event

public

Base mirror event

public

Mirror move event

Draggable/Plugins/Scrollable

summary
public

Scrollable plugin which scrolls the closest scrollable parent

public

Scrollable default options

public

V onDragMove: *

public
public

V onDragStop: *

public

V scroll: *

Draggable/Sensors/DragSensor

summary
public

This sensor picks up native browser drag events and dictates drag operations

Draggable/Sensors/ForceTouchSensor

summary
public

This sensor picks up native force touch events and dictates drag operations

Draggable/Sensors/MouseSensor

summary
public

This sensor picks up native browser mouse events and dictates drag operations

Draggable/Sensors/Sensor

summary
public

C Sensor

Base sensor class.

Draggable/Sensors/SensorEvent

summary
public

Drag move sensor event

public

Drag pressure sensor event

public

Drag start sensor event

public

Drag stop sensor event

public

Base sensor event

Draggable/Sensors/TouchSensor

summary
public

This sensor picks up native browser touch events and dictates drag operations

Droppable

summary
public

Droppable is built on top of Draggable and allows dropping draggable elements into dropzone element

Droppable/DroppableEvent

summary
public

Droppable dropped event

public

Base droppable event

public

Droppable returned event

public

Droppable start event

public

Droppable stop event

Plugins/Collidable

summary
public

Collidable plugin which detects colliding elements while dragging

Plugins/Collidable/CollidableEvent

summary
public

Base collidable event

public

Collidable in event

public

Collidable out event

Plugins/ResizeMirror

summary
public

The ResizeMirror plugin resizes the mirror element to the dimensions of the draggable element that the mirror is hovering over

public

ResizeMirror default options

Plugins/Snappable

summary
public

Snappable plugin which snaps draggable elements into place

Plugins/Snappable/SnappableEvent

summary
public

Base snap event

public

Snap in event

public

Snap out event

Plugins/SortAnimation

summary
public

SortAnimation plugin adds sort animation for sortable

public

SortAnimation default options

Plugins/SwapAnimation

summary
public

SwapAnimation plugin adds swap animations for sortable

public

SwapAnimation default options

Sortable

summary
public

Sortable is built on top of Draggable and allows sorting of draggable elements.

Sortable/SortableEvent

summary
public

Base sortable event

public

Sortable sort event

public

Sortable sorted event

public

Sortable start event

public

Sortable stop event

Swappable

summary
public

Swappable is built on top of Draggable and allows swapping of draggable elements.

Swappable/SwappableEvent

summary
public

Base swappable event

public

Swappable start event

public

Swappable stop event

public

Swappable swap event

public

Swappable swapped event

shared/AbstractEvent

summary
public abstract

All events fired by draggable inherit this class.

shared/AbstractPlugin

summary
public abstract

All draggable plugins inherit from this class.

shared/utils/closest

summary
public

F closest(element: Element, selector: String | Function): Element | null

Get the closest parent element of a given element that matches the given selector string or matching function

shared/utils/distance

summary
public

F distance(x1: Number, y1: Number, x2: Number, y2: Number): Number

Returns the distance between two points

shared/utils/requestNextAnimationFrame

summary
public

F requestNextAnimationFrame(callback: *): *

shared/utils/touchCoords

summary
public

F touchCoords(event: TouchEvent): Touch

Returns the first touch event found in touches or changedTouches of a touch events.