/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß, Martin Sinn * @copyright 2012 - 2016 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %}
Examples
{% filter trim|escape|nl2br %}{% raw %} {{ basic.switch('switch1', 'bath.light.switch') }} {{ basic.switch('switch2', 'bath.light.switch', '', '', '', '', '#25ea4e', '#4176a9') }} {% endraw %}{% endfilter %}
{{ basic.switch('switch1', 'bath.light.switch') }} {{ basic.switch('switch2', 'bath.light.switch', '', '', '', '', '#25ea4e', '#4176a9') }}
With other icons
{% filter trim|escape|nl2br %}{% raw %} {{ basic.switch('switch3', 'bath.blind.move.up', 'control_arrow_up.svg', 'control_arrow_down.svg') }} {{ basic.switch('switch4', 'bath.blind.move.up', 'control_arrow_up.svg', 'control_arrow_down.svg', '', '', '#25ea4e', '#4176a9') }} {% endraw %}{% endfilter %}
{{ basic.switch('switch3', 'bath.light.switch', 'control_arrow_up.svg', 'control_arrow_down.svg') }} {{ basic.switch('switch4', 'bath.light.switch', 'control_arrow_up.svg', 'control_arrow_down.svg', '', '', '#25ea4e', '#4176a9') }}
{% endblock %}