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

Deprecatedas of version 2.9. Use 'basic.stateswitch' instead.

A switch with two states displayed as a button

Parameters
{{ basic.dual(id, item, pic_on, pic_off, val_on, val_off, type, color_on, color_off) }}
id
unique id for this widget (optional)
item
an item
pic_on
the pic for the 'on' state (optional)
pic_off
the pic for the 'off' state (optional)
val_on
value send for the 'on' state (optional, default 1)
val_off
value send for the 'off' state (optional, default 0)
type
type: 'micro', 'mini', 'midi' (optional, default: mini)
color_on
the color_on: e.g. '#f00' for red (default 'icon1' of the design)
color_off
the color_off: e.g. '#f00' for red (default 'icon0' of the design)
This widget is deprecated and may be removed in later versions.
Please look into basic.stateswitch for replacement and further information.

Author:Martin Gleiss and others

Widgets

Design

Misc