-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
Hello,
i am developing an application with multiple draggable objects that are in within of a div element with #myBounds that look like this :
<div #myBounds id="main-content" >
<window *ngFor="let item of itemss | async; index as i;" [item]="item" [bounds]="myBounds" ></window>
</div>
the children have the following div content
<div>
[bounds]="bounds"
[inBounds]="true"
ngDraggable
(started)="onEventBegin($event)"
(stopped)="onEventEnd($event)"
(rzStart)="onEventBegin($event)"
(rzStop)="onEventEnd($event)"
ngResizable [rzHandles]="'n,e,s,w,se,sw,ne,nw'"
rzMinHeight="200"
rzMinWidth="200"
[preventDefaultEvent]="true"
>
...
</div>
these elements are created dynamically by the user which he can drag around.
When the application is closed and reopened i want to have the old positions of the elements before it was closed.
I am saving the data width, height and transform in onEventEnd($event).
My question is how can i set the property movingOffset in the child div that it is being shown here https://xieziyu.github.io/angular2-draggable/#/draggable/usage/events programatically?
Thank you for your time!
Metadata
Metadata
Assignees
Labels
No labels