/** * ----------------------------------------------------------------------------- * @package smartVISU * @author KERVIEL Pierre-Yves * @copyright 2014 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %}
Example
{% filter trim|escape|nl2br %}{% verbatim %} {{ 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') }} {% endverbatim %}{% endfilter %}
horizontal
{{ 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') }}
vertical
{{ 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') }}




Dynamic Select Values
List items can be used as dynamic option lists for the menu type. If a list item is given in the parameter "itemvals" it overrides the other value parameters given in the macro call. Optional texts can be defined by a second item in the parameter "itemtxts". If this is not defined the option values will be used as texts.
{% filter trim|escape|nl2br %}{% verbatim %} {{ basic.select('', 'bath.multistate', '', '', '', '', '', '', 'bath.list1', 'bath.list2') }} {% endverbatim %}{% endfilter %}
Activity Indicator
The parameter "indictor" can be used to show different icons / colors / animations while the widget is waiting for the item update by the backend. For the grouped switches the options are the same as in basic.stateswitch. In "menu" mode the widget displays activity with a blinking select menu, only. {% endblock %}