Skip to content

Gridstack still delete the Draggable items even Clone Helper is defined #414

@ardiansyaherwin

Description

@ardiansyaherwin

Hi,

So, I'd like to create a drag drop of an infinite widget, let's say like clone instead of delete the item.
Currently, the dragged item is still deleted even I've already set its UI clone helper.

here's my code:

var options = {
cellHeight: 45,
disableResize: true,
verticalMargin: 10,
acceptWidgets: ".grid-stack-item",
float: false
};
$("#left-grid").gridstack(options);
$("#right-main-grid").gridstack(_.defaults({
float: true
}, options));
$(".palette .grid-stack-item").draggable({
revert: true,
handle: ".grid-stack-item-content",
scroll: false,
appendTo: "body",
helper: "clone"
});

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions