Skip to content

Cloning widget when moving from one grid to another  #499

Closed

Description

@redstubble

I have seen a number of similar issues, however I cannot seem to get any to work. I have one template gridstack which I want to drag widgets onto another dashboard. However I want to duplicate this widget rather than move it.

I have tried removing $(ui.draggable).remove(); and removing the attributes, however the behaviour is still not working. The element is still bound to the cloned element. How do I reset this?

Or is it easier to create a draggable element using Jquery that can bind into the gridstack, when dragged over it?

Any hints or tips would be greatly appreciated.

Activity

  1. radiolips commented on Aug 18, 2016

    @radiolips
    Member

    We'll handle this in #396 . You may want to watch that one, as hopefully we'll have many fixes in v0.2.7, including a fix for this. Thanks! Please reopen if you feel this is different from the other, or open a new ticket if you have any more issues. Thanks, @redstubble !

  2. radiolips commented on May 15, 2017

    @radiolips
    Member

    This works on the develop branch now. Please be sure to use draggable setting helper: clone.

  3. nicolecf commented on Jun 12, 2019

    @nicolecf

    The helper:"clone" work's on 0.40 version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions