Skip to content

nmorel/gwt-dnd-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gwt-dnd-sample

GWT Drag And Drop Sample with CellTable / DataGrid. The sample is deployed to appengine : http://gwt-dnd-sample.appspot.com/

Tips

To make a widget draggable, you have to :

  • position the attribute "draggable" to "true" : widget.getElement().setDraggable(Element.DRAGGABLE_TRUE);
  • listen to dragstart event and position the values you want to drag via event.getDataTransfer().setData("key","value");

To drop in a widget, you have to :

  • listen to dragover event. Without it, the drop event is never called!
  • listen to drop event and read the dragged values via event.getDataTransfer().getData("key");

About

GWT Drag And Drop Sample with CellTable / DataGrid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages