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

A switch, build of a series of icons. The series may be a iconseries (NAME_00.svg, NAME_10.svg, NAME_20.svg...) or may be a dynamic svg-icon (icon.NAME)

Parameters
{{ basic.shifter(id, item_switch, item_value, pic_on, pic_off, min, max) }}
id
unique id for this widget (optional)
item_switch
an item for the switch (optional)
item_value
an item for the value
pic_on
the iconseries or dynamic icon for the 'on' state
pic_off
the icon for the 'off' state (optional)
min
the value if it is off (optional, default 0)
max
the value if it is on (optional, default 255)
Use the slider to control the shifter
Examples iconseries
1: default icons
{{ basic.shifter('shifter1', 'bath.light.switch', 'bath.light.value') }}

2: without switch-function
{{ basic.shifter('shifter2', '', 'bath.light.value', 'fts_shutter_00.svg', 'fts_shutter.svg') }}

3: with static 'off' icon
{{ basic.shifter('shifter4', 'bath.light.switch', 'bath.light.value', 'fts_garage_door_00.svg', 'fts_garage.svg') }}

1: 0 2: 0 3: 0 ... 0
Examples svg-icons
{{ basic.shifter('svg1', '...', '...', 'icon.arrow') }}
{{ basic.shifter('svg2', '...', '...', 'icon.battery') }}

N N

Author:Martin Gleiss and others

Widgets

Design

Misc