<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - dnd with custom elements]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/189/"/>
	<updated>2010-01-24T09:21:09Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/189/</id>
		<entry>
			<title type="html"><![CDATA[Re: dnd with custom elements]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/719/#p719"/>
			<content type="html"><![CDATA[[url=http://github.com/creaven/miftree/commit/76e68ce59aaa403f08eab6a65a8fd6e7a84c6244]commit 76e68ce59[/url] add drag from element to tree demo.]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2010-01-24T09:21:09Z</updated>
			<id>http://mifjs.net/forum/post/719/#p719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dnd with custom elements]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/712/#p712"/>
			<content type="html"><![CDATA[great - thanks!]]></content>
			<author>
				<name><![CDATA[almoehi]]></name>
				<uri>http://mifjs.net/forum/user/118/</uri>
			</author>
			<updated>2010-01-23T01:00:08Z</updated>
			<id>http://mifjs.net/forum/post/712/#p712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dnd with custom elements]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/709/#p709"/>
			<content type="html"><![CDATA[It's hard to do, there is no built-in methods, I'll try to make a small example of how you can move something in a tree]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2010-01-22T17:55:39Z</updated>
			<id>http://mifjs.net/forum/post/709/#p709</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dnd with custom elements]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/706/#p706"/>
			<content type="html"><![CDATA[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.]]></content>
			<author>
				<name><![CDATA[almoehi]]></name>
				<uri>http://mifjs.net/forum/user/118/</uri>
			</author>
			<updated>2010-01-16T20:04:35Z</updated>
			<id>http://mifjs.net/forum/post/706/#p706</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dnd with custom elements]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/705/#p705"/>
			<content type="html"><![CDATA[Mif.Tree.Drag.Element is droppable for dragged tree nodes (name may confuse you, but it's so).

How it will work, how you want convert some div or other dom element into tree node?]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2010-01-16T17:24:43Z</updated>
			<id>http://mifjs.net/forum/post/705/#p705</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[dnd with custom elements]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/704/#p704"/>
			<content type="html"><![CDATA[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:
[code]
$$('div.folderDropable').each(function(el){
                el.setStyle('color', 'red');
                dnd = new Mif.Tree.Drag.Element({
                    element: el,
                    options: {
                        onStart: function() {
                            console.log('start dragging');
                        }
                    }
                });
            });
[/code]

any help ?

thanks!]]></content>
			<author>
				<name><![CDATA[almoehi]]></name>
				<uri>http://mifjs.net/forum/user/118/</uri>
			</author>
			<updated>2010-01-16T16:31:45Z</updated>
			<id>http://mifjs.net/forum/post/704/#p704</id>
		</entry>
</feed>

