new EZDnD_Draggable()

Create new interface for making DOM elements draggable.

Parameters

Name Type Optional Description
See also
https://pamblam.github.io/ez-drag-n-drop/examples/
Returns

Methods

bind() → undefined

Binds events to the elements. This is called on construct, but if you unbind() or destroy(), you can re-bind with this method.

Returns

undefined 

deepCloneNode(elem) → (Element or Boolean)

Recursively clone the given HTMLElement, it's computed styles, attributes, and children. Does not copy IDs.

Parameter

Name Type Optional Description

elem

HTMLElement

 

Returns

(Element or Boolean) 

destroy() → undefined

Unbinds all events and resets the DOM so that the instance can be garbage collected. Synonym for unbind();

Returns

undefined 

unbind() → undefined

Unbinds all events and resets the DOM so that the instance can be garbage collected. Synonym for destroy();

Returns

undefined