drag.js

Provides dragging (moving) capability for any DOM node

Functions

OAT.Drag.create(clicker, mover, optObj)

Modifies element mover such that clicking and moving on clicker will cause it to move. Additional options can be specified using optObj object:

OAT.Drag.remove(clicker, mover)

Removes dragging relation between clicker and mover.

OAT.Drag.removeAll(clicker)

Removes all dragging relations from clicker.

Constants

OAT.Drag.TYPE_X

ToBeDone?

OAT.Drag.TYPE_Y

ToBeDone?

OAT.Drag.TYPE_XY

ToBeDone?

Example


var header = Dom.create("div");
var body = Dom.create("div");
body.appendChild(header);
OAT.Drag.create(header, body, {type:TYPE_XY});

CategoryOAT CategoryDocumentation CategoryOpenSource CategoryToBeDone?