PDA

View Full Version : Add Drag and Drop to YAHOO.ext.Element


zquirm
11-05-2006, 02:47 AM
would it be possible to add to YAHOO.ext.Element YUI's Drag and Drop utilities?

so...creating a draggable element would be as easy as:

var a = getEl('box');
a.makeDD();

- and -

a.makeDDTarget();

or something to that effect...

thoughts?

jack.slocum
11-05-2006, 06:35 AM
Sure, I will add it.

This will work nicely with the composite element I am working on. It allows selecting elements by css selector and then using them as a single Element object. So you could say:


var dds = getEls('#center div.draggable');
dds.initDD('DraggableGroup'); // make em draggable
dds.show(true); // fade them in