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. Usenews
for 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 Styleleft
is calculated as formulax / 12 * 100%
y
: HTML DOM Styletop
is calculated as formulay / 12 * 100%
w
: HTML DOM Stylewidth
is calculated as formula60 * w + 20 * (w - 1)
h
: HTML DOM Styleheight
is 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 tofalse
to hide the icon