From 1215de575d9cda66b434f21dafdf44f986638b71 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Jul 2012 23:23:20 -0700 Subject: slider --- .../demos/draggable/constrain-movement.html | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 include/jquery_ui/development-bundle/demos/draggable/constrain-movement.html (limited to 'include/jquery_ui/development-bundle/demos/draggable/constrain-movement.html') diff --git a/include/jquery_ui/development-bundle/demos/draggable/constrain-movement.html b/include/jquery_ui/development-bundle/demos/draggable/constrain-movement.html new file mode 100644 index 000000000..0f9474496 --- /dev/null +++ b/include/jquery_ui/development-bundle/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.2.3