/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %}
Examples
{{ basic.flip('flip1', 'bath.light.switch') }}
{{ basic.flip('flip1', 'bath.light.switch') }}
With other on/off-text and different track colors
{% filter trim|escape|nl2br %}{% verbatim %} {{ basic.flip('flip2', 'bath.light.switch', '1', '0','','','gold') }} side text {{ basic.flip('flip3', 'bath.light.switch', '1', '0','','','green') }} {{ basic.flip('flip4', 'bath.light.switch', '1', '0','','','#777') }} {% endverbatim %}{% endfilter %}
{{ basic.flip('flip5', 'bath.light.switch', '1', '0','','','gold') }} side text
{{ basic.flip('flip6', 'bath.light.switch', '1', '0','','','green') }}
{{ basic.flip('flip7', 'bath.light.switch', '1', '0','','','#777') }}
{% endblock %}