1. Domino UI
  2. Data table
  3. Drag drop
Top Same table Different tables Docs

Drag and Drop

The DragDropPlugin class is a DataTable plugin that enables drag-and-drop functionality for table rows. It allows users to drag rows and drop them into other DataTables linked with this plugin. This class implements the DataTablePlugin interface and provides methods to configure the drag-and-drop behavior.

Usage Example:

 
 DataTable< Person>  dataTable = DataTable.create(data);
 DragDropPlugin< Person>  dragDropPlugin = new DragDropPlugin<> ();
 dragDropPlugin.linkWith(dataTable2); // Link with another DataTable
 dataTable.addPlugin(dragDropPlugin);
 

T

The type of data in the DataTable.

Examples

Drag and Drop on same table Drag drop rows within the same table.

Drag and Drop on different tables Drag drop rows between different tables

API Docs: DragDropPlugin

We are a group of passionate people who love what we do

Donate & Support Us