Routable Popup Handle Close Event
See original GitHub issue- Framework7 version: 3.1.1
- Platform and Target: Chrome Browser and iOS cordova app
Describe the bug
How to handle close event of routable popup?
I have created on poup which is open from one page, and when popup close then i want to handle that closed poup event same as we done for dynamic popup from where popup open.
I am using below method to load popup: https://framework7.io/docs/routes.html#routable-modals
// Load Popup from component file
{
path: '/popup-component/',
loginScreen: {
componentUrl: './popup-component.html',
/* popup-component.html contains:
<template>
<div class="popup-screen">
<div class="view">
<div class="page">
...
</div>
</div>
</div>
</template>
<style>...</style>
<script>...</script>
*/
},
},
Thanks Hiren Raiyani
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What's the correct way to open routable popup/modal ...
Open sandbox app · Verify that main links on home page work · Click on Search2 in header to open Search 2 popup...
Read more >How to handle the close event of Bootstrap popup
Use the hide.bs.modal event.. $('#myModal').on('hide.bs.modal', function (e) { //do something.. }).
Read more >How to make routable modals in react with react-router
goBack() to close the modal, if it wasn't opened from the parent page. I ended up pushing a new route to the parent...
Read more >Managing Confirm And Prompt Modals Outside Of The Router ...
Ben Nadel explores one approach to managing Confirm and Prompt modal windows in an Angular 7.2.15 application; but, outside of the Router.
Read more >Give your modals URL address with Auxiliary Routes in Angular
In this article, I'm going to show you how you can create modals and provide them with the ability to act like a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same way, in routable popup component you handle popup close event, like:
and other “parent” component you can listen for such event:
component page:
when i press back on navbar then reopen the page link using this event throws an error 'Error in Success callbackId: … : TypeError: undefined is not an object (evaluating ‘self.$route.context’) ’