Sha256: c2b6795aa7c5aa9c6ee8079eda02e6eda0fa13e3fe75ca82477b5161b9ebd4d4
Contents?: true
Size: 1.83 KB
Versions: 3
Compression:
Stored size: 1.83 KB
Contents
<div class="device-detail"> <header> <h2>Commands</h2> <h2>Events</h2> </header> <div class="device-commands" ng-controller="DeviceCommandsCtrl"> <select ng-model="command" ng-options="cmd for cmd in device.commands"> </select> <div class="params"> <div class="param" ng-repeat="param in device.params"> <input placeholder='name' type="text" ng-model="param.name" ng-focus="addParam($last)"> <input placeholder='value' type="text" ng-model="param.value" ng-focus="addParam($last)"> <select ng-options="type for type in types" ng-model="param.type"></select> <span class="close" ng-click="removeParam($index)">X</span> </div> </div> <button ng-click="submit()" ng-disabled="isDisabled()">run</button> <table class="results"> <thead> <th>Results</th> </thead> <tbody> <tr class="result" ng-repeat="entry in device.results"> <td>{{entry.result}}</td> </tr> </tbody> </table> </div> <div class="device-events" ng-controller="DeviceEventsCtrl"> <div class="input"> <input type=text" ng-model="eventName" placeholder="event name"> <button ng-click="listen()">listen</button> </div> <table class="listeners"> <thead> <th colspan="2">Listeners</th> </thead> <tbody> <tr class="listener" ng-repeat="(name, listeners) in device.listeners"> <td>{{name}}</td> <td class="remove" ng-click="remove(name)">remove</td> </tr> </tbody> </table> <table class="events"> <thead> <th colspan="2">Events</th> </thead> <tbody> <tr class="event" ng-repeat="event in device.events"> <td>{{event.name}}</td> <td>{{event.data}}</td> </tr> </tbody> </table> </div> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
robeaux-0.2.0 | partials/device.html |
robeaux-0.1.1 | partials/device.html |
robeaux-0.1.0 | partials/device.html |