5.5.45 IconElement

The IconElement shows an arbitrary GIF/JPEG picture. If a message ID is defined with the element properties, the image displayed will change with the parameter value addressed by the message identifier.

Data Model (extends ScreenElement)

Key Type Value
type String Always "IconElement".
xpos Number see ScreenElement
ypos Number see ScreenElement
width Number see ScreenElement
height Number see ScreenElement
id String the message ID this element listens to
icon String the initial icon file name

When displayed the first time, the Iconelement shows the image specified in icon. If the message ID id is not empty, the IconElement dubscribes for this ID and changes the displayed icon every time a new value is received. To make use of this, the name of the icon should be structured in the following way:

base-name.{value-part}.{extension}

The value-part gets replaced by the parameter value received. For a boolean value for example, two icons 'red-lamp.false.png' and 'red-lamp.true.png'. The IconElement is configured to show 'red-lamp.false.png' initially. When the parameter addressed by id gets updated, the display changes according to the parameter value.