Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT draggable CellTable cells

I have a GWT CellTable - it's a pretty simple table with just a single string column.

What I'd like to do is drag rows of this table to a drop target (actually another table). I've been trying to figure out how to attach a draggable event as described at ~23:00 of this video.

To which CellTable element can I set the draggable flag to TRUE.

I haven't gotten this far yet, but I'm sure I'll soon face a similar issue in setting the drop handler on the target table.

If someone could post an example or point me in the right direction, I'd be grateful.

like image 979
Vinnie Avatar asked Jan 05 '12 13:01

Vinnie


1 Answers

Take a look at GwtQuery drag and drop plugin. It offers drag and drop support for CellWidget

Documentation : http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGWTDeveloppers

Example wit CellTable : http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/CellTableSample/CellTableSample.html

like image 91
jdramaix Avatar answered Oct 15 '22 13:10

jdramaix