Index | OAT homepage | OpenLink Software

resize.js

resize.js

Provides resizing capability for any DOM node.

Functions

OAT.Resize.create(clicker, mover, type[, restrictionFunction[, endFunction]])

Modifies element such that clicking and moving on clicker will cause it to resize.

OAT.Resize.remove(clicker, element)

Removes resizing relation between clicker and element.

OAT.Resize.removeAll(clicker)

Removes all resizing relations from clicker.

Constants

OAT.Resize.TYPE_

Tells which direction resizing is permitted.

Example


var corner = OAT.Dom.create("div");
var body = OAT.Dom.create("div");
body.appendChild(corner);
OAT.Resize.create(corner, body, OAT.Resize.TYPE_XY);
Copyright (C) 2005-2009 OpenLink Software