Configure Notifications Widget
The notifications widget displays user notifications based on notification settings. It can show all notifications or filter to display only unread items, providing quick access to important alerts and messages directly from the dashboard.
Define Notifications Widget
The notifications widget displays notifications with configurable filtering options. Refer to Notifications widget for widget behavior details.
Configuration Example
Below is a sample JSON definition of a notification widget in the Portal dashboard:
{
"type": "notification",
"id": "notification-widget",
"names": [
{
"locale": "en",
"value": "My Notifications"
},
{
"locale": "fr",
"value": "Mes notifications"
},
{
"locale": "de",
"value": "Meine Benachrichtigungen"
},
{
"locale": "es",
"value": "Mis notificaciones"
}
],
"layout": {
"x": 0,
"y": 0,
"w": 4,
"h": 6,
"style": "text-color: blue;",
"styleClass": "your-widget-class"
},
"onlyUnread": true,
"showFullscreenMode": true
}
JSON Configuration Reference
Required Properties
Property |
Type |
Description |
|---|---|---|
|
string |
Widget type. Must be |
|
string |
Unique identifier for the widget |
|
array |
Multilingual display names. Each entry: |
|
object |
Widget position and size (see Layout Properties below) |
Layout Properties
Property |
Type |
Description |
|---|---|---|
|
number |
Column position in 12-column grid (0-11). CSS left = |
|
number |
Row position. CSS top = |
|
number |
Width in grid columns (1-12). Pixel width = |
|
number |
Height in grid rows (min 4). Pixel height = |
|
string |
(Optional) CSS classes for custom styling |
|
string |
(Optional) Inline CSS styles |
Tip
Recommended notifications widget size: Width 3-5 columns, Height 5-8 rows for optimal notification list display.
Filtering & Display Properties
Property |
Type |
Default |
Description |
|---|---|---|---|
|
boolean |
|
Filter notifications. |
|
boolean |
|
Show/hide fullscreen mode icon |
Note
Notifications displayed depend on the user’s notification settings. Users can manage notification preferences in their user profile.