Drag. Move.js

Contains Drag.Move, Element.makeDraggable

License

MIT-style license.

Summary
Drag. Move.jsContains Drag.Move, Element.makeDraggable
Drag.MoveExtends Drag.Base, has additional functionality for dragging an element, support snapping and droppables.
ElementCustom class to allow all of its methods to be used with any DOM element via the dollar function $.
Properties
makeDraggableMakes an element draggable with the supplied options.

Drag.Move

Extends Drag.Base, has additional functionality for dragging an element, support snapping and droppables.  Drag.move supports either position absolute or relative.  If no position is found, absolute will be set.  Inherits methods, properties, options and events from Drag.Base.

Note

Drag.Move requires an XHTML doctype.

Arguments

elthe $(element) to apply the drag to.
optionsoptional. see Options below.

Options

all the drag.Base options, plus: container - an element, will fill automatically limiting options based on the $(element) size and position. defaults to false (no limiting) droppables - an array of elements you can drop your draggable to. overflown - an array of nested scrolling containers, see Element::getPosition

Element

Custom class to allow all of its methods to be used with any DOM element via the dollar function $.

Summary
Properties
makeDraggableMakes an element draggable with the supplied options.

Properties

makeDraggable

Makes an element draggable with the supplied options.

Arguments

optionssee Drag.Move and Drag.Base for acceptable options.
Extends Drag.Base, has additional functionality for dragging an element, support snapping and droppables.
Makes an element draggable with the supplied options.
Modify two css properties of an element based on the position of the mouse.
returns the element passed in with all the Element prototypes applied.

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi