i am trying to build an app with extjs 4 and draw2d touch library. the app has a two column panel. how can i drag a draw2d shape from one column and drop it in the other? Any help plis
thanks
Asked
Active
Viewed 844 times
1

fon
- 255
- 2
- 7
- 16
-
Did you read the doc on drag and drop in ExtJs ? Can you share the code you tried so far ? – Lorenz Meyer Jan 23 '14 at 11:55
1 Answers
0
draw2d touch use the jquery-ui dragdrop stuff. You must add a css class "draw2d_droppable" to your div to indicate that the node is dragable. You can introspec thte example "buildin_commandstack" from draw2d.
<div id="navigation" class="">
<div data-shape="draw2d.shape.node.Start" class="palette_node_element draw2d_droppable">Start</div>
<div data-shape="draw2d.shape.node.End" class="palette_node_element draw2d_droppable">End</div>
<div data-shape="draw2d.shape.node.Between" class="palette_node_element draw2d_droppable">Between</div>
</div>
Regards

Draw2D touch
- 26
- 1