smartVISU
19:05, 30.11, v2.7

Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue 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 gad/item

Parameters
{{ basic.text(id, gad, txt_on, txt_off, val_on, val_off) }}
id
unique id for this widget
gad
a gad/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: Marco Fleischer

Widgets

Design

Misc