PDA

View Full Version : How to arrange content dragging'n'dropping objects ?



tomtom-
11 Nov 2009, 4:22 AM
Hi everybody,

I'm a new user of ExtJS.
I'm looking for a solution to play with drag'n'drop functions arranging content in the layout.
For instance, I have to divs representing boxes like this :


<table>
<tr>
<td>
<div>A</div>
</td>
<td>
<div>B</div>
</td>
</tr>
</table>

and I want to be able to drag'n'drop B before A and arrange divs automatically like this :


<table>
<tr>
<td>
<div>B</div>
</td>
<td>
<div>A</div>
</td>
</tr>
</table>

Does anyone has the way to follow ? May I use the TableLayout to do this ?

Thanks,

Tom