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

Select a specific value (e.g. a scene)

Parameters
{{ basic.select(id, item, type, value, icon, text, color_on, group, itemvals, itemtxts) }}
id
unique id for this widget (optional)
item
an item
type
type: 'menu', 'micro', 'mini', 'midi', 'icon' (optional, default: menu)
value
list of values (optional, default [0,1])
icon
list of icons for every button (optional) - not supported for type 'menu'
text
list of texts for every menu entry or button (optional)
color_on
the color for the on state of the buttons (optional, default: icon1) - not supported for type 'menu'
group
orientation of the controlgroup: 'horizontal', 'vertical' or 'none' for seperate buttons (optional, default: 'horizontal') - not supported for type 'menu'
itemvals
an item containing all selectable values (optional) - overrides existing value definitions
itemtxts
an item containing the texts corresponding to the selectable values (optional even if itemvals is specified)
Example
{{ basic.select('', 'bath.multistate', '', [5,6,7], '', ['Down', 'Left', 'Up']) }}
{{ basic.select('', 'bath.multistate', 'mini', [5,6,7]) }}
{{ basic.select('', 'bath.multistate', 'icon', [5,6,7], ['edit_numeric_1.svg', 'edit_numeric_2.svg', 'edit_numeric_3.svg']) }}
{{ basic.select('', 'bath.multistate', 'mini', [5,6,7], ['control_arrow_down.svg', 'control_arrow_left.svg', 'control_arrow_up.svg'], '', 'green', 'none') }}

{{ basic.select('', 'bath.multistate', 'icon', [5,6,7], ['control_arrow_down.svg', 'control_arrow_left.svg', 'control_arrow_up.svg'], ['Down', 'Left', 'Up'], 'green', 'vertical') }}
{{ basic.select('', 'bath.multistate', 'midi', [5,6,7], ['control_arrow_down.svg', 'control_arrow_left.svg', 'control_arrow_up.svg'], '', '', 'vertical') }}
horizontal




New
List items can be used as dynamic option lists for the menu type. If a list item "itemvals" is given it overrides the other value parameters given in the macro call. Optional texts can be defined by a second item "itemtxts". If this is not defined the option values will be used as texts.
{{ basic.select('', 'bath.multistate', '', '', '', '', '', '', 'bath.list1', 'bath.list2') }}

Author: Martin Gleiss and others

Widgets

Design

Misc