Basic-Widgets

basic.checkbox basic.color basic.flip basic.glue basic.icon basic.input basic.listview basic.offset basic.print basic.roundslider basic.select basic.shutter basic.slider basic.stateswitch basic.symbol basic.tank basic.trigger basic.window


basic.flip

Displays a flip-switch

Parameters
{{ basic.flip(id, item, txt_on, txt_off, val_on, val_off, background) }}
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)
background
alternative color (e.g. '#777') for active switch (optional)
Examples
{{ basic.flip('flip1', 'bath.light.switch') }}
With other on/off-text and different track colors
{{ basic.flip('flip2', 'bath.light.switch', '1', '0','','','gold') }} side text
{{ basic.flip('flip3', 'bath.light.switch', '1', '0','','','green') }}
{{ basic.flip('flip4', 'bath.light.switch', '1', '0','','','#777') }}
side text


Author: Martin Gleiß and others

Widgets

Design

Misc