ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.89k stars 13.52k forks source link

feat: onDragStart listener for ion-reorder-group #23148

Open jwburnside opened 3 years ago

jwburnside commented 3 years ago

Feature Request

Ionic version: Ionic Framework : @ionic/angular 5.5.3

Describe the Feature Request It would be great to add onDragStart and onDragEnd events for ion-reorder-group. Currently there is only an event when the drag completes AND the list order has changed.

My use case would be if I have icons contained in the list items I want to hide the icons while the list item is being dragged, then display them once the drag is complete.

Describe Preferred Solution Add an onDragStart and onDragEnd listener that I can subscribe to which will fire when dragging starts and dragging ends respectively (regardless of if the list order changed).

Describe Alternatives I don't think there are any alternatives.

Related Code No related code.

Additional Context I have not been able to find a workaround for this.

ihorbond commented 3 years ago

+1

vicatcu commented 1 year ago

I have a list that updates once a second. Without the ability to get a callback when the drag starts I can't halt the updates while reorder is occurring to keep the list re-rendering while an item is being dragged.