From c1447173c659c78e036b5c4c6bc91de26e84a13b Mon Sep 17 00:00:00 2001 From: Maggie Costello Wachs Date: Thu, 15 Jan 2009 21:57:33 +0000 Subject: completed reorganization of draggable demos --- demos/draggable/visual-feedback.html | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'demos/draggable/visual-feedback.html') diff --git a/demos/draggable/visual-feedback.html b/demos/draggable/visual-feedback.html index 333560567..23e342e92 100644 --- a/demos/draggable/visual-feedback.html +++ b/demos/draggable/visual-feedback.html @@ -1,19 +1,22 @@ - jQuery UI Draggable - Helper Demo + jQuery UI Draggable - Visual feedback
+

With helpers:

+

Original

-

Clone

+

Semi-transparent clone

Custom helper (in combination with cursorAt)

- +

Stacked:

+
+
+

We are draggables..

+
+ +
+

..whose z-indexes are controlled automatically..

+
+ +
+

..with the stack option.

+
+
-

- -

+

Provide feedback to users as they drag an object in the form of a helper. The helper option accepts the values 'original' (the draggable object moves with the cursor), 'clone' (a duplicate of the draggable moves with the cursor), or a function that returns a DOM element (that element is shown near the cursor during drag). Control the helper's transparency with the opacity option.

+ +

To clarify which draggable is in play, bring the draggable in motion to front. Use the zindex option to set a higher z-index for the helper, if in play, or use the stack option to ensure that the last item dragged will appear on top of others in the same group on drag stop.

-- cgit v1.2.3