Skip to content

Get updated positions of all widgets in dragstop event #961

@iyerananth

Description

@iyerananth

Subject of the issue

How can we get updated positions of all widgets in dragstop event. Getting the updated positions in change event, but change event is firing for gridstack on adding widgets dynamically. I was using the change event to save grid layout. Hence looking at getting updated positions in dragstop event.

Your environment

Using version 0.3.0

  • which browser and its version
    Chrome 71

Steps to reproduce

Tell us how to reproduce this issue. Please provide a working demo, you can use this template as a base.

Expected behaviour

Require updated positions of all widgets

Actual behaviour

Getting Updated postion of only widget that has been moved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions