Configure Notifications Widget
Define Notifications Widget
The Notifications widget of the Portal dashboard displays all Notifications based on your notification settings. Refer to Notifications widget for details.
Below is a sample JSON definition of a notification widget in the Portal dashboard
{
   "type": "notification",
   "id": "notification_848ba48391014fcb801a14fb841a879a",
   "names": [
      {
         "locale": "en",
         "value": "My Notifications"
      },
      {
         "locale": "fr",
         "value": "Mes notifications"
      },
      {
         "locale": "de",
         "value": "Meine Benachrichtigungen"
      },
      {
         "locale": "es",
         "value": "Mis notificaciones"
      }
   ],
   "layout": {
      "w": 4,
      "h": 6,
      "x": 0,
      "y": 12,
      "style": "text-color: blue;",
      "styleClass": "your-widget-class"
   },
   "onlyUnread": true
}
The basic JSON structure of a Notifications widget
type: type of the widget. Usenotificationfor a notification widget
id: ID of the widget
names: multilingual name of the widget on the UI
layout: layout definition of the widget
x: HTML DOM Styleleftis calculated as formulax / 12 * 100%
y: HTML DOM Styletopis calculated as formulay / 12 * 100%
w: HTML DOM Stylewidthis calculated as formula60 * w + 20 * (w - 1)
h: HTML DOM Styleheightis calculated as formula60 * h + 20 * (h - 1)
styleClass(optional): add CSS Classes to HTML DOM of the widget
style(optional): add inline style to HTML DOM of the widget
onlyUnread: filter only unread notifications. The default value is “false”