Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue basic.multistate basic.rgb basic.shifter basic.shutter basic.slider basic.switch basic.symbol basic.tank basic.text basic.trigger basic.value


basic.text

A dymanic text depending on a item

Parameters
{{basic.text(id, item, txt_on, txt_off, val_on, val_off) }}
id
unique id for this widget
item
a item
txt_on
the text for the 'on' state (optional)
txt_off
the text for the 'off' state (optional)
val_on
value send for the 'on' state (optional, default 1)
val_off
value send for the 'off' state (optional, default 0)
Example
{{ basic.text('text1', 'bath.light.switch', 'Text for the on-state', 'It is off now') }}
Use the switch to change the state:

Author:Martin Gleiß and others
inspired by Marco Fleischer

Widgets

Design

Misc