Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue basic.multistate basic.rgb basic.shifter basic.shutter basic.slider basic.switch basic.symbol basic.tank basic.text basic.trigger 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
item_switch
a item for the switch (optional)
item_value
a 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 minimum value if it is off (optional, for future use)
max
the maximum 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: 2: 3: ...
Examples svg-icons
{{ basic.shifter('svg1', '...', '...', 'icon.arrow') }}
{{ basic.shifter('svg2', '...', '...', 'icon.battery') }}

N N

Author:Martin Gleiß and others

Widgets

Design

Misc