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.flip

Displays a flip-switch

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

Author: Martin GleiƟ and others

Widgets

Design

Misc