Skip to content

feat: add emit drag start/end callback in ion-reorder-group #30497

Closed
@Ea-st-ring

Description

@Ea-st-ring

Prerequisites

Describe the Feature Request

When drag start / end event fires in reorder-group, I need to get dragging state to prevent data fetching (I think it's also an issue, reorder elements with dynamic data is impossible when data loaded like api calls)

Is there any plan to add onDragStart, onDragEnd callback which gives dragging item infos?

Thank you

Describe the Use Case

I could use start, end callback like code below.

<ion-reorder-group
  onDragStart={(item)=> {
    // do something with item...
    isDragging = true;
  }}
  onDragEnd={(item)=> {
    // do something with item...
    isDragging=false;
  }}
>
 //
</ion-reorder-group>

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

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