#8 Relais ein / ausschalten von Ocotprint aus
- Toggle Button enable / disable in Einstellunge - Databinding von Button
This commit is contained in:
parent
576a53fad1
commit
c76712159f
@ -17,4 +17,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group">
|
||||||
|
<div class="controls">
|
||||||
|
<label class="checkbox">
|
||||||
|
<input type="checkbox" id="mystromswitchShowToggleButton" data-bind="checked: settings.plugins.mystromswitch.onOffButtonEnabled">Toggle Button Enabled
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="sidebar_plugin_mystromswitch">
|
<div class="sidebar_plugin_mystromswitch">
|
||||||
<label class="control-label" id="mystromswitchPowerValue">Powerconsumption 0.0W</label>
|
<label class="control-label" id="mystromswitchPowerValue">Powerconsumption 0.0W</label>
|
||||||
<button class="btn btn-primary" data-bind="click: onToggleRelayEvent">{{ _('Toggle Relais') }}</button>
|
<button class="btn btn-primary" data-bind="click: onToggleRelayEvent">{{ _('Toggle Relais') }}, visible : settings.plugins.mystromswitch.onOffButtonEnabled"/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user