Basic-Widgets

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


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 Gleiss and others

Widgets

Design

Misc