/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %} Use the slider to control the shifter
{{ basic.slider('slider1', 'bath.light.value', 0, 255, 1) }}
Basic.shifter uses the dynamic icons "icon.NAME". It can be replaced by basic.symbol with more options like variable coloring or directly by the dynamic icons themselves. The widget will be removed in future versions of smartVISU.
{% import "icon.html" as icon %} {% set widgetlist = docu('widgets/icon.html') %} {% for widget in widgetlist %} {% set i = i + 1 %} {{ basic.shifter('svg' ~ i, 'bath.light.switch', 'bath.light.value', widget.command) }} {% endfor %}
{% endblock %}