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

Displays a checkbox

Parameters
{{ basic.checkbox(id, item, txt, val_on, val_off) }}
id
unique id for this widget (optional)
item
an item
txt
label of the checkbox (optional)
checkbox gets shrinked when empty, pass a whitespace to prevent this
val_on
value for the checked state (optional, default 1)
val_off
value for the unchecked state (optional, default 0)
Example
{{ basic.checkbox('', 'bath.light.switch', 'Light') }}
{{ basic.checkbox('', 'bath.light.switch') }}
{{ basic.checkbox('', 'bath.light.switch', ' ') }}

Author: Martin Gleiß and others

Widgets

Design

Misc