Drag and drop tree

2 views
Skip to first unread message

Malthe Borch

unread,
Jan 30, 2009, 7:08:30 AM1/30/09
to vu...@googlegroups.com, David Pratt
Hello list, –––

I did some research on drag and drop nested sortables, which we
considered for letting users move content around.

There are three reasonable offerings, namely:

- jsTree (http://www.jstree.com/jsTree/examples)

- NestedSortablesWidget
(http://www.bernardopadua.com/nestedSortables/test/widget)

- Nested list (http://www.swartzfager.org/blog/dspNestedList.cfm)

I believe the first one is the most complete and supported; I tried to
integrate but had some error which I'll investigate further.

Then I came upon this development document:

- http://jqueryui.pbwiki.com/Tree

Basically it seems that the UI team is in the process of developing a
standard widget for this sort of thing. Perhaps then, we should wait a
few months until it's ready and meanwhile implement a simpler
interface.

Challenges:

- We probably don't want to load the entire tree at once, although
this is probably not a real concern at first.

- Not all content can be dragged to all places; only if the content
type is addable at the drop point should we allow it. I'm not sure how
we'd configure the plugins to take this into account.

\malthe

Christof Haemmerle

unread,
Jan 30, 2009, 10:44:34 AM1/30/09
to vu...@googlegroups.com
hi malthe,


On Jan 30, 2009, at 7:08 AM, Malthe Borch wrote:


Hello list, –––

I did some research on drag and drop nested sortables, which we
considered for letting users move content around.

There are three reasonable offerings, namely:

- jsTree (http://www.jstree.com/jsTree/examples)

- NestedSortablesWidget
(http://www.bernardopadua.com/nestedSortables/test/widget)

- Nested list (http://www.swartzfager.org/blog/dspNestedList.cfm)

I believe the first one is the most complete and supported; I tried to
integrate but had some error which I'll investigate further.

Then I came upon this development document:

- http://jqueryui.pbwiki.com/Tree

Basically it seems that the UI team is in the process of developing a
standard widget for this sort of thing. Perhaps then, we should wait a
few months until it's ready and meanwhile implement a simpler
interface.

i think for the backend implementation it doesnt make a big difference which interface we use.
i would for now use NestedSortablesWidget since it seems like it provides all features out of the box.
when jquery ui releases the plugin we can implement it. dont think its a good idea to wait for them.

if thats ok i will provide a markup with NestedSortablesWidget.



Challenges:

- We probably don't want to load the entire tree at once, although
this is probably not a real concern at first.

- Not all content can be dragged to all places; only if the content
type is addable at the drop point should we allow it. I'm not sure how
we'd configure the plugins to take this into account.


the NestedSortablesWidget has that support
see:

you cannot drag a file into a file



\malthe




best,
christof 


Christof Haemmerle 
Nex9, LLC 

413 W 14th street, suite 402
New York, NY 10014



This e-mail and any attachments are intended solely for the individual or entity to whom it is addressed. Its contents and that of the attachments are confidential, contain proprietary information, some or all of which may be legally privileged. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Finally, the recipient should check this email and any attachments for the presence of viruses. Nex9 accepts no liability for any damage caused by any virus transmitted by this email.

Reply all
Reply to author
Forward
0 new messages