-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat: emit event when each reorder item snaps into place #27614
Copy link
Copy link
Closed
Labels
package: core@ionic/core package@ionic/core packagetype: feature requesta new feature, enhancement, or improvementa new feature, enhancement, or improvement
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Need to be able to modify ion-item while it is being reordered in an ion-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 to mouseup or click)
<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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
package: core@ionic/core package@ionic/core packagetype: feature requesta new feature, enhancement, or improvementa new feature, enhancement, or improvement

