O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dragging any component

Many GXT components have specialized classes for handling DnD in ways that are best suited for them. However, any GXT component can be dragged with just a single line of code. Of course, there are several other bells and whistles we can turn on for such a drag operation, but still with very minimal configuration. The following screenshot shows the draggable buttons in this recipe:

Dragging any component

How to do it...

Simply wrap the widget or component with Draggable, a GXT class, and it becomes draggable! Optionally, you can constrain the orientation (horizontal or vertical) and region/dimension of the drag operation by invoking the appropriate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required