質問

I am just starting out with dynatree (which is indeed v. cool), but I have a non-standard use for it: sorting terms from a long list into the hierarchical Dynatree. Specifically, I want to drag-and-drop from outside the Dynatree onto a Dynatree element--preferably exploiting Dynatree's spring-loaded folders rather than expecting the user to manually open the relevant categories beforehand.

Could I get some specific guidance on how to achieve my dreams?

Thanks, Steve Upstill

役に立ちましたか?

解決

One of he drag'n'drop samples seems to implement your use case: You can drag the 'Drag me around' box over the right tree.

http://wwwendt.de/tech/dynatree/doc/sample-dnd3.html

The box is a simple query.draggable. The tree receives the standard events (onDragEnter, onDragOver, onDrop, onDragLeave). Make sure to enable the autoExpandMS option.

Hope this helps Martin

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top