Basic-Widgets

basic.checkbox basic.color basic.flip basic.glue basic.icon basic.input basic.listview basic.offset basic.print basic.select basic.shifter basic.shutter basic.slider basic.stateswitch basic.symbol basic.tank basic.trigger basic.button basic.dual basic.colordisc basic.float basic.formula basic.rgb basic.multistate basic.switch basic.text basic.value


basic.flip

Displays a flip-switch

Parameters
{{ basic.flip(id, item, txt_on, txt_off, val_on, val_off) }}
id
unique id for this widget (optional)
item
an item
txt_on
text for the 'on' state (optional, default 'On')
txt_off
text for the 'off' state (optional, default 'Off')
val_on
value for the 'on' state (optional, default 1)
val_off
value for the 'off' state (optional, default 0)
Examples
{{ basic.flip('flip1', 'bath.light.switch') }}
With other on/off-text
{{ basic.flip('flip2', 'bath.light.switch', '1', '0') }}
text beside the flip
text beside the flip

Author:Martin Gleiss and others

Widgets

Design

Misc