Skip to content

docs(reorder): add new ionReorderStart, ionReorderMove, ionReorderEnd event playgrounds #4149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: feature-8.7
Choose a base branch
from

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Jun 12, 2025

Changes

Example of the new styles (the deprecated property was added just to show the visual updates, I did not deprecate disabled):

Before After
before after

Previews

Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 8:57pm

@@ -73,6 +73,29 @@ import UpdatingData from '@site/static/usage/v8/reorder/updating-data/index.md';

<UpdatingData />

## Event Handling
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love these section headings, but I decided to be consistent with how Range documents its events. If we want to change this I can update both components.


The `ionReorderEnd` event is emitted when the user completes the reorder gesture by removing their pointer from the screen. The event includes the `from` and `to` indices of the item, as well as the `complete` method that should be called to finalize the reorder operation. The `from` index will always be the position of the item when the gesture started, while the `to` index will be its final position. This event will fire even if no items have changed position, in which case the `from` and `to` indices will be the same.

import ReorderStartEndEvents from '@site/static/usage/v8/reorder/reorder-start-end-events/index.md';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't like how range prefixes ion- in the directory names but I can update this if we want consistency.

@brandyscarney brandyscarney marked this pull request as ready for review June 13, 2025 20:56
@brandyscarney brandyscarney requested a review from a team as a code owner June 13, 2025 20:56
@brandyscarney brandyscarney requested review from ShaneK and thetaPC and removed request for a team June 13, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant