Skip to content

Commit ebcd579

Browse files
committed
docs(modal): separate playgrounds
1 parent db599b3 commit ebcd579

20 files changed

Lines changed: 671 additions & 621 deletions

File tree

docs/api/modal.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import Methods from '@ionic-internal/component-api/v8/modal/methods.md';
77
import Parts from '@ionic-internal/component-api/v8/modal/parts.md';
88
import CustomProps from '@ionic-internal/component-api/v8/modal/custom-props.mdx';
99
import Slots from '@ionic-internal/component-api/v8/modal/slots.md';
10-
import SheetDragEvents from '@site/static/usage/v8/modal/sheet/drag-events/index.md';
10+
import SheetDragStartEndEvents from '@site/static/usage/v8/modal/sheet/drag-start-end-events/index.md';
11+
import SheetDragMoveEvent from '@site/static/usage/v8/modal/sheet/drag-move-event/index.md';
1112

1213
<head>
1314
<title>ion-modal: Ionic Mobile App Custom Modal API Component</title>
@@ -213,19 +214,19 @@ A few things to keep in mind when creating custom dialogs:
213214

214215
## Event Handling
215216

216-
### Using `ionDragStart`
217+
### Using `ionDragStart` and `ionDragEnd`
217218

218-
The `ionDragStart` event is emitted as soon as the user begins a dragging gesture on the modal. This event fires at the moment the user initiates contact with the handle or modal surface, before any actual displacement occurs. It is particularly useful for preparing the interface for a transition, such as blurring background content or disabling certain interactive elements to ensure a smooth dragging experience.
219+
The `ionDragStart` event is emitted as soon as the user begins a dragging gesture on the modal. This event fires at the moment the user initiates contact with the handle or modal surface, before any actual displacement occurs. It is particularly useful for preparing the interface for a transition, such as hiding certain interactive elements (like headers or buttons) to ensure a smooth dragging experience.
219220

220-
### Using `ionDragMove`
221+
The `ionDragEnd` event is emitted when the user completes the dragging gesture by releasing the modal. Like the move event, it includes the final `ModalDragEventDetail` [object](#modaldrageventdetail). This event is commonly used to finalize state changes once the modal has come to a rest.
221222

222-
The `ionDragMove` event is emitted continuously while the user is actively dragging the modal. This event provides a `ModalDragEventDetail` [object](#modaldrageventdetail) containing real-time data, essential for creating highly responsive UI updates that react instantly to the user's touch. For example, the `progress` value can be used to dynamically darken the backdrop's opacity as the modal is dragged upward.
223+
<SheetDragStartEndEvents />
223224

224-
### Using `ionDragEnd`
225+
### Using `ionDragMove`
225226

226-
The `ionDragEnd` event is emitted when the user completes the dragging gesture by releasing the modal. Like the move event, it includes the final `ModalDragEventDetail` [object](#modaldrageventdetail). This event is commonly used to finalize state changes once the modal has come to a rest. For example, you might use the `predictedBreakpoint` property to determine which content to load or to update the application's routing state once the user has finished swiping the sheet to a specific height.
227+
The `ionDragMove` event is emitted continuously while the user is actively dragging the modal. This event provides a `ModalDragEventDetail` [object](#modaldrageventdetail) containing real-time data, essential for creating highly responsive UI updates that react instantly to the user's touch. For example, the `progress` value can be used to dynamically darken a header's opacity as the modal is dragged upward.
227228

228-
<SheetDragEvents />
229+
<SheetDragMoveEvent />
229230

230231
## Interfaces
231232

static/usage/v8/modal/sheet/drag-events/angular/example_component_ts.md

Lines changed: 0 additions & 108 deletions
This file was deleted.

static/usage/v8/modal/sheet/drag-events/demo.html

Lines changed: 0 additions & 127 deletions
This file was deleted.

static/usage/v8/modal/sheet/drag-events/javascript.md

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)