From 1215de575d9cda66b434f21dafdf44f986638b71 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Jul 2012 23:23:20 -0700 Subject: slider --- .../demos/draggable/snap-to.html | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 include/jquery_ui/development-bundle/demos/draggable/snap-to.html (limited to 'include/jquery_ui/development-bundle/demos/draggable/snap-to.html') diff --git a/include/jquery_ui/development-bundle/demos/draggable/snap-to.html b/include/jquery_ui/development-bundle/demos/draggable/snap-to.html new file mode 100644 index 000000000..320cb7947 --- /dev/null +++ b/include/jquery_ui/development-bundle/demos/draggable/snap-to.html @@ -0,0 +1,68 @@ + + + + + jQuery UI Draggable - Snap to element or grid + + + + + + + + + + + + +
+ +
+

I'm a snap target

+
+ +
+ +
+

Default (snap: true), snaps to all other draggable elements

+
+ +
+

I only snap to the big box

+
+ +
+

I only snap to the outer edges of the big box

+
+ +
+

I snap to a 20 x 20 grid

+
+ +
+

I snap to a 80 x 80 grid

+
+ +
+ + + +
+

Snap the draggable to the inner or outer boundaries of a DOM element. Use the snap, snapMode (inner, outer, both), and snapTolerance (distance in pixels the draggable must be from the element when snapping is invoked) options.

+

Or snap the draggable to a grid. Set the dimensions of grid cells (height and width in pixels) with the grid option.

+
+ + + -- cgit v1.2.3