great - thanks!
2 2010-01-16 23:04:35
Re: dnd with custom elements (5 replies, posted in Help)
mmh ok how can I do this?
My elements could be anywhere on the page, and should not apear inside the tree.
It should work like a shopping cart where you can drop elements into.
3 2010-01-16 19:31:45
Topic: dnd with custom elements (5 replies, posted in Help)
Hi,
i want to be able to drop custom DOM objects into a tree node/folder.
I have elements like this:
<div id="someId" class="folderDropable">some item</div>
experimented with code like this, but can't get it working:
$$('div.folderDropable').each(function(el){
el.setStyle('color', 'red');
dnd = new Mif.Tree.Drag.Element({
element: el,
options: {
onStart: function() {
console.log('start dragging');
}
}
});
});any help ?
thanks!