Module: structure/pure/Info

Since:
  • 0.8.0 (2012)
Author:
  • Christian Mayer
Source:

Example

Show temperature in degree celcius

 <info format="%.1f °C">
  <label>outside temperature</label>
  <address transform="DPT:9.001">0/0/0</address>
</info>

Requires

Methods


<inner> create(element, path, flavour, type)

Creates the widget HTML code

Parameters:
Name Type Description
element Element

DOM-Element

path String

internal path of the widget

flavour String

Flavour of the widget

type String

Page type (2d, 3d, ...)

Source:
Returns:

HTML code

Type
String

<inner> update(address, value)

Handles updates of incoming data for this widget

Parameters:
Name Type Description
address String

Source address of the incoming data

value String

Incoming data

Source: