dragdrop

dragdrop

This is the drag drop component which adds draggable functionality to view elements

Methods

(private, static) _draggable(obj, options)

Add a single or group of items as draggable elements

Parameters:
Name Type Description
obj object

The selector to create the draggable or droppable object for, this could be a string or single/grouped aim.dom object

options object

The options object

(private, static) _droppable(obj, options)

Add a single or group of items as droppable elements

Parameters:
Name Type Description
obj object

The selector to create the draggable or droppable object for, this could be a string or single/grouped AIM.Dom object

options object

The options object

(static) draggable(obj, options)

Creates new draggable objects based on the option params

Parameters:
Name Type Description
obj object

The selector to create the draggable or droppable object for, this could be a string or single/grouped aim.dom object

options object

The options object

(static) droppable(obj, options)

Creates new droppable objects based on the option params

Parameters:
Name Type Description
obj object

The selector to create the draggable or droppable object for, this could be a string or single/grouped AIM.Dom object

options object

The options object

(private, static) getType({array}{object}, options, isDrag)

Get the type of object supplied and instantiate the respective Object literal

Parameters:
Name Type Description
{array}{object} string

obj - The selector to create the draggable or droppable object for, this could be a string or single/grouped AIM.Dom object

options object

The options object

isDrag boolean

Determines if it is a draggable or droppable list of items