ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

Bind position to a property of objects

Open GCorbel opened this issue 8 years ago • 4 comments

I have a position property to objects used in a sortable list. I want to update the position at the end of the drop. All position of the group have to be updated.

I didn't saw this option. Is it possible yet ? I'm ready to contribute if you're interested.

GCorbel avatar Jan 18 '17 15:01 GCorbel

I think I understand what your saying, that instead of the position being updated instantly that you just want the position changes returned at the end. I think in the roadmap (in my head) to 1.0 that will be possible, but isn't currently.

dgavey avatar Jan 25 '17 14:01 dgavey

No, this not what I want. I want to bind the position attribute with the position of the object in the list. Is it clearer ?

GCorbel avatar Jan 25 '17 14:01 GCorbel

No way currently to do that other than by updating your position attributes manually after the drop has ended, by mapping it to the index of the updated array.

dgavey avatar Jan 25 '17 14:01 dgavey

Ok. You can clone this issue if you don't want to implement it.

GCorbel avatar Jan 25 '17 15:01 GCorbel