Can't find drag and drop addon

Hi there,
Can’t find drag and drop addon to Jmix.
There was in a cuba-platform.
Is there any addon like this, may be access to nightly repo.

Thanks,
Nurmuhammad

Hello!

We don’t have any plans to migrate the add-on. The Vaadin drag-and-drop components that are used in the add-on are included to the Jmix UI. So you can use these components the same way but you need to unwrap Jmix components to add them to the layout. For instance:

// drag source
DDVerticalLayout ddPalette = new DDVerticalLayout();
ddPalette.setDragMode(LayoutDragMode.CLONE);
ddPalette.addComponent(/*Vaadin component implemntation*/);

rootPalette.withUnwrapped(JmixGroupBox.class, vGroupBox -> vGroupBox.addComponent(ddPalette));
// drop target
DDVerticalLayout dashboard = new DDVerticalLayout();
dashboard.setDragMode(LayoutDragMode.CLONE);
dashboard.setDropHandler(new DropHandler() {
    @Override
    public void drop(DragAndDropEvent event) {
        onDrop(event);
    }
    @Override
    public AcceptCriterion getAcceptCriterion() {
        return AcceptAll.get();
    }
});

scrollBox.withUnwrapped(JmixScrollBoxLayout.class, vScrollBox-> vScrollBox.addComponent(dashboard));

The full example of drag-and-drop in Jmix: dnd-sample.zip (83.3 KB)

Project reproduces the example described here: https://github.com/cuba-platform/cuba-dnd.

Hello,
Thanks Roman, it works for me!