/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_device.html" %} {% block example %}
To bind some widgets to the codepad use a div to group them. Than use the "data-bind" attribute in the div-tag.
Important: The Codepad has to be placed after the widgets.
Example
{% filter trim|escape|nl2br %}{% verbatim %}
... {{ basic.switch('switch1', 'bath.light.switch') }} ...
{{ device.codepad('codepad1') }} {% endverbatim %}{% endfilter %}

If you want to test ist, the correct number for that codepad is: {{ config_codepad_code }}
{{ basic.switch('switch1', 'bath.light.switch') }} {{ basic.button('button1', 'bath.light.switch', '1') }} {{ basic.dual('dual1', 'bath.light.switch') }} {{ basic.colordisc('colordisc1', 'bath.color.r', 'bath.color.g', 'bath.color.b') }}
{{ device.codepad('codepad1') }} {% endblock %}