Working example of popup auto closure
See original GitHub issueCan we have a documented example of how to setup the popup auto close function. I have tested using the following defined on TYPES.POPUP and it is not working:
action: function (item, entity) {
this.$scope.openPopup(item, entity);
setTimeout(function () {
this.$scope.closePopup();
}, '1000');},
The popup opens as expected and after the timeout of 1 second the following error is seen on the screen and in the browser console and the popup does not close:
Uncaught TypeError: Cannot read property ‘closePopup’ of undefined
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
modal popup closing automatically after few seconds using ...
closedialog #automaticallypopupclose#jquerymodelpopupjquery snippet to close modal popup automatically after 5 or 10 seconds.
Read more >Auto Close popup window - Oracle Communities
Hi All, Apex 4.2.1. Can someone know how to do following please? I have page (IR) report and link that open a popup...
Read more >Javascript to automatically close a popup window
I have the following code (listed below). In short, when a user clicks the button "All On" it will open a popup window...
Read more >Popups and window methods - The Modern JavaScript Tutorial
Popups exist from really ancient times. The initial idea was to show another content without closing the main window.
Read more >Issue in pop up close - SAP Community
The popup window will get closed automatically if you perfrom any action say for example selecting a single result field or pressing 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
@flick116 Hi - I managed to get it work , I’m sure that this is probably not correct, but does work with a small issues it seems - whereby the popup would close unexpectedly if you go back within the 5 seconds.
},
},
I requested help on the Q&A and hoping to get some help #758 Hope this helps in the interim.
@Erelen-Laiquendi - Thanks a mill this works - flawlessly Finally - thanks again