From 3909e6d89e01e4cd8777377c63037896bb95aa2f Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 25 Nov 2011 21:18:19 +0100 Subject: new jq layout --- .../demos/draggable/constrain-movement.html | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/main/webapp/jquery-ui-1.9pre/demos/draggable/constrain-movement.html (limited to 'src/main/webapp/jquery-ui-1.9pre/demos/draggable/constrain-movement.html') diff --git a/src/main/webapp/jquery-ui-1.9pre/demos/draggable/constrain-movement.html b/src/main/webapp/jquery-ui-1.9pre/demos/draggable/constrain-movement.html new file mode 100644 index 0000000..0f1a570 --- /dev/null +++ b/src/main/webapp/jquery-ui-1.9pre/demos/draggable/constrain-movement.html @@ -0,0 +1,69 @@ + + + + + jQuery UI Draggable - Constrain movement + + + + + + + + + + + + +
+ +

Constrain movement along an axis:

+ +
+

I can be dragged only vertically

+
+ +
+

I can be dragged only horizontally

+
+ +

Or to within another DOM element:

+
+
+

I'm contained within the box

+
+ +
+

I'm contained within the box's parent

+
+ +
+

I'm contained within my parent

+
+
+ +
+ + + +
+

Constrain the movement of each draggable by defining the boundaries of the draggable area. Set the axis option to limit the draggable's path to the x- or y-axis, or use the containment option to specify a parent DOM element or a jQuery selector, like 'document.'

+
+ + + -- cgit v1.1