diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/yui/yui_3.0.0b1/examples/dd/drag-plugin.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.0.0b1/examples/dd/drag-plugin.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,221 @@ + + + + + YUI Library Examples: Drag & Drop: Drag Node Plugin + + + + + + + + + + + + + + +
+
+
+

+ + YUI 3.x Home - + +

+
+ + +
+ + + +
+
+
+
+

YUI Library Examples: Drag & Drop: Drag Node Plugin

+
+
+ +

Note: This is YUI 3.x. Looking for YUI 2.x?

+ +
+
+
+
+ +

Drag & Drop: Drag Node Plugin

+ +
+

+

This example shows using the Drag Node Plugin.

+

+ +
+
+ + + + + + +

x

Drag Me
+ + + + + + +
+
+
+ +

Setting up the Node

+

First we need to create an HTML Node to make draggable.

+ +

Now we give that Node some CSS to make it visible.

+ + +

Setting up the YUI Instance

+

Now we need to create our YUI instance and tell it to load the dd-plugin module.

+ + +

Making the Node draggable with the Drag Plugin

+

Now that we have a YUI instance with the dd-plugin module, we need to instantiate a Node instance on this Node.

+ + +

Accessing the Drag instance

+

Now that we have a draggable Node, you can get access to the Drag Instance from the dd namespace on the Node instance.

+ +
+ +
+ +
+
+ + + +
+ +
+

Copyright © 2009 Yahoo! Inc. All rights reserved.

+

Privacy Policy - + Terms of Service - + Copyright Policy - + Job Openings

+
+
+ + + +