API Reference - WebPortal.OverflowPopup
WebPortal.OverflowPopup
WebPortal.OverflowPopup
Description | This event is triggered when the popup queue contains 5 popp and a new popup try to be added. Check out this page for more information. |
Type | event message. |
Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
window.addEventListener("message", function(event){
if (typeof event.data !== 'undefined' && typeof event.data.type !== 'undefined' ){
var data = event.data;
var type = event.data.type;
switch(type){
// Popup Queue Exceeded
case "WebPortal.OverflowPopup":
console.log("The Popup queue exceed max of 5 popups.");
break;
}
}
});
See Also
- Method Create a WebPortal Notification: WebPortal.notification.new
- Method Create a Classic Popup: WebPortal.popup.open