Skip to content

Commit 03828ff

Browse files
committed
docs(modal): add console logs
1 parent ebcd579 commit 03828ff

8 files changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export class ExampleComponent {
2929
}
3030

3131
onDragEnd(event: CustomEvent<ModalDragEventDetail>) {
32+
console.log('Drag ended', event.detail);
33+
3234
// `currentBreakpoint` tells us which snap point the modal will animate to after the drag ends
3335
const { progress, currentBreakpoint } = event.detail;
3436
const headerEl = this.header.nativeElement;

static/usage/v8/modal/sheet/drag-move-event/demo.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
});
5757

5858
modal.addEventListener('ionDragEnd', (event) => {
59+
console.log('Drag ended', JSON.stringify(event.detail));
60+
5961
// `currentBreakpoint` tells us which snap point the modal will animate to after the drag ends
6062
const { progress, currentBreakpoint } = event.detail;
6163

static/usage/v8/modal/sheet/drag-move-event/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ import angular_example_component_ts from './angular/example_component_ts.md';
2525
src="usage/v8/modal/sheet/drag-move-event/demo.html"
2626
devicePreview
2727
includeIonContent={false}
28+
showConsole={true}
2829
/>

static/usage/v8/modal/sheet/drag-move-event/javascript.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
});
3737
3838
modal.addEventListener('ionDragEnd', (event) => {
39+
console.log('Drag ended', event.detail);
40+
3941
// `currentBreakpoint` tells us which snap point the modal will animate to after the drag ends
4042
const { progress, currentBreakpoint } = event.detail;
4143

static/usage/v8/modal/sheet/drag-move-event/react.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ function Example() {
2222
};
2323

2424
const onDragEnd = (event: CustomEvent<ModalDragEventDetail>) => {
25+
console.log('Drag ended', event.detail);
26+
2527
// `currentBreakpoint` tells us which snap point the modal will animate to after the drag ends
2628
const { progress, currentBreakpoint } = event.detail;
2729
const headerEl = header.current!;

static/usage/v8/modal/sheet/drag-move-event/vue.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const onDragMove = (event: CustomEvent<ModalDragEventDetail>) => {
4848
};
4949
5050
const onDragEnd = (event: CustomEvent<ModalDragEventDetail>) => {
51+
console.log('Drag ended', event.detail);
52+
5153
// `currentBreakpoint` tells us which snap point the modal will animate to after the drag ends
5254
const { progress, currentBreakpoint } = event.detail;
5355
const headerEl = header.value!.$el;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
});
5050

5151
modal.addEventListener('ionDragEnd', (event) => {
52-
console.log('Drag ended', event.detail);
52+
console.log('Drag ended', JSON.stringify(event.detail));
5353

5454
header.style.opacity = 1;
5555
});

static/usage/v8/modal/sheet/drag-start-end-events/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ import angular_example_component_ts from './angular/example_component_ts.md';
2525
src="usage/v8/modal/sheet/drag-start-end-events/demo.html"
2626
devicePreview
2727
includeIonContent={false}
28+
showConsole={true}
2829
/>

0 commit comments

Comments
 (0)