Configure News Widget
Define News widget
The news widget shares relevant information as a News Feed into Axon Ivy.
Below is a sample JSON definition of a news widget in the Portal dashboard
{
"type": "news",
"id": "news_id",
"names": [
{
"locale": "en",
"value": "News feed"
}
],
"layout": {
"w": 4,
"h": 6,
"x": 0,
"y": 0
},
"showFullscreenMode": true
}
The basic JSON structure of a news widget
type: type of the widget. Usenewsfor the news widget
id: ID of the widget
names: multilingual name of the widget on the UI.
layout: layout definition of the news 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
showFullscreenMode: visibility of the fullscreen mode icon. The default value istrue, set tofalseto hide the icon