/** * ----------------------------------------------------------------------------- * @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.stateswitch('', '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.stateswitch('', 'bath.light.switch', 'icon') }} {{ basic.stateswitch('', 'bath.light.switch', '', 0, '', '1') }} {{ basic.stateswitch('', 'bath.light.switch') }} {{ basic.color('colordisc1', 'bath.color.r', 'bath.color.g', 'bath.color.b') }}
{{ device.codepad('codepad1') }} {% endblock %}