You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! I spoke with the team and we think this is a good feature to add to Ionic. Related issue for start/end events: #23148
liamdebeasi
changed the title
feat: event (emit) while reorderable ion-list is reordering
feat: emit event when each reorder item snaps into place
Jun 9, 2023
Prerequisites
Describe the Feature Request
Need to be able to modify
ion-item
while it is being reordered in anion-list
Describe the Use Case
Observe the graphical example, in which the numerical ordering of each item must change as it (or other) items are reordered.
Describe Preferred Solution
Adding an extra event, analogous to
mousemove
, complementing the existing event (analogous tomouseup
orclick
)<ion-list class=""> <ion-reorder-group :disabled="false" @ionItemMove="handleMove($event)" @ionItemReorder="handleReorder($event)"> ...
Describe Alternatives
It is possible to achieve this using MutationObservers, but it is not pleasant.
Related Code
See above
Additional Information
PR has already be lodged.
The text was updated successfully, but these errors were encountered: