문제

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