UNPKG

thing-it-device-spark-photon

Version:

[thing-it-node] Device Plugin for Spark Photon.

13 lines 754 B
<table class="formTable" style="width: 100%;"> <tr style="vertical-align: middle"> <td style="width: 20px; padding-right: 10px;"> <ti-switch ti-model="component._state.switch" ti-change="panel.callDeviceService(component, 'toggle')"></ti-switch> </td> <td style="width: 99%;"> <input ti-slider="" ti-model="component._state.level" ti-min="component.configuration.minimumLevel" ti-max="component.configuration.maximumLevel" ti-change="panel.callDeviceService(component, 'changeLevel', {level: component._state.level} )"> </td> <td style="padding-left: 10px;"><ti-battery ti-model="component._state.batteryLevel"></ti-battery></td> </tr> </table>