Skip to content

feat: emit event when each reorder item snaps into place #27614

Open
@sfinktah

Description

@sfinktah

Prerequisites

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.

image
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions