API Reference - WebPortal.notification.evt.click
WebPortal.notification.evt.click
WebPortal.notification.evt.click
Description | This event is triggered when the user clicks on the Open App button of an Notification Center (NC) Notification. Check out the dedicated tutorial. |
Type | event message. |
Output Data | Type | Description |
---|---|---|
type | String | WebPortal.notification.evt.click |
notifId | String | Id of the notification |
data | String | Additionnal data provided initialy in WebPortal.notification.new |
Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 user clicks on the Open App button of a NC Notification
case "WebPortal.notification.evt.click":
console.log("[WebPortal Notification] The user selected the `Open App` button of the NC Notification");
console.log("[WebPortal Notification] Additionnal data: "+ data.data);
console.log("[WebPortal Notification] ID:" + data.notifId +);
break;
}
}
});
See Also
- Method Create a WebPortal Notification: WebPortal.notification.new
- Event Creation Success: WebPortal.notification.evt.created
- Event Creation Error: WebPortal.notification.evt.error
- Event Prompt Overflow: WebPortal.OverflowPopup
- Event NC Notification Opened: WebPortal.notification.show
- Event NC Notifcation: Open App button clicked: WebPortal.notification.evt.click
- Event NC Notification: Delete button clicked: WebPortal.notification.event.close