question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: sheet/card modal emit drag

See original GitHub issue

Prequisites

Describe the Feature Request

If a FR like this already exist, please close, but i didn’t found one.

It would be great to be able to “dig” into Animations and Gestures that are used in the Ionic Framework.

Describe the Use Case

It would allow us to show, hide or transform & animate stuff in the app while the user performs something. For example with the new sheet style modal we could fade content in or out if the modal is dragged up or dragged down.

Also this can be used for navigation animations.

Describe Preferred Solution

I guess this is kinda tricky, as this can be either defined globally or per component.

For example if i want to implement this for a Modal it must be possible for me to add this in the Component that the Modal uses like

this.modal.animation.subscribe()

Describe Alternatives

Currently i think something like this is possible if we copy/paste all the animations/gestures from ionic into our app and modify to call a handler, but this is not very good, as it doesn’t update the animations if you update it internally 🤔

Related Code

No response

Additional Information

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:13
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
liamdebeasicommented, Sep 20, 2021

Thanks – makes sense to have this work for card modal too.

4reactions
sean-perkinscommented, Apr 20, 2022

Added additional thoughts here: https://github.com/ionic-team/ionic-framework/issues/25127#issuecomment-1104375899

Summary: We should add a dragEvents property to ion-modal, to allow developers to subscribe to the drag events for both card and sheet modals. Sheet modals should likely include information related to the breakpoint as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Examples of the new Ionic 6 Bottom Sheet Modal
The Ionic 6 modal comes with a brand new presentation mode called bottom ... changes on our page and later emit new values...
Read more >
ion-modal: Ionic Mobile App Custom Modal API Component
Sheet modals can optionally render a handle indicator used for dragging the sheet between breakpoints. The handleBehavior property can be used to configure...
Read more >
Passing VueDraggable model data back to b-modal on OK click
We tried using the draggable move event but that emits an event to the parent on every drag. Any help will be appreciated...
Read more >
Modal | Components - BootstrapVue
Modals are streamlined, but flexible dialog prompts powered by JavaScript and ... Note: events ok , cancel , and close are emitted by...
Read more >
Build a Reusable Modal Component Using Vue 3 ... - YouTube
In this video we build out a dynamic & reusable modal component using vue 3. We create this using the composition api, slots...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found