Webportal v1

embedded apps

API Reference - WebPortal.nativePopup.evt.ok

WebPortal.nativePopup.evt.ok

Type Event
Type Deprecated
wave 2
wave 3
wave 4

Event triggered when the OK button of the popup is clicked.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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){

	    //When the *OK* button of the  popup is clicked.
	    case "WebPortal.popup.evt.ok":
		console.log("The *OK* button of the  popup is clicked");
		alert("The *OK* button of the  popup is clicked");
		break;

	    }
	}
    });

This is deprecated, it should not be used in a new project.