-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
base: feature-8.7
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -73,6 +73,29 @@ import UpdatingData from '@site/static/usage/v8/reorder/updating-data/index.md'; | |||
|
|||
<UpdatingData /> | |||
|
|||
## Event Handling |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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.
Changes
Using ionReorderStart and ionReorderEnd
andUsing ionReorderMove
@deprecated
events (this was previously not accounted for at all) and updates the styling for deprecated propsExample of the new styles (the deprecated property was added just to show the visual updates, I did not deprecate
disabled
):Previews