UNPKG

@iotschema/discharging

Version:

undefined

104 lines (86 loc) 3.83 kB
<script type="text/javascript"> RED.nodes.registerType('discharging',{ category: 'iotschemaorg', color: '#00A4B4', defaults: { propertyType: {value:""}, name: {value:""}, iptype: {value:"iot:Discharging"}, capability: {value:"iot:ElectricBattery"}, foitype: {value:""}, foi: {value:""}, operation:{value:""} }, inputs:1, outputs:2, icon: "file.png", label: function() { return this.name||"discharging"; } }); </script> <script type="text/x-red" data-template-name="discharging"> <div class="form-row"> <label for="node-input-name" style="width:40%"><i class="icon-tag"></i> Name:</label> <input type="text" id="node-input-name" placeholder="Name" style="width:50%"/> </div> <div class="form-row"> <label for="node-input-iptype" style="width:40%"><i class="icon-tag"></i> Interaction Pattern Type:</label> <input type="text" id="node-input-iptype" style="width:50%" readonly/> </div> <div class="form-row"> <label for="node-input-capability" style="width:40%"><i class="icon-tag"></i> Capability:</label> <input type="text" id="node-input-capability" style="width:50%" value="iot:ElectricBattery" disabled/> </div> <div class="form-row"> <label for="node-input-foitype" style="width:40%"><i class="icon-tag"></i> Feature Of Interest Type:</label> <input type="text" id="node-input-foitype" style="width:50%" placeholder=""/> </div> <div class="form-row"> <label for="node-input-foi" style="width:40%"><i class="icon-tag"></i> Feature Of Interest:</label> <input type="text" id="node-input-foi" style="width:50%" placeholder=""/> </div> <fieldset> <legend style="font-size:14px;font-weight:bold;color:#555;font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;">ChargingStatusData</legend> <div class="form-row"> <label for="node-input-propertyType" style="width:40%"><i class="icon-tag"></i> PropertyType:</label> <input type="text" id="node-input-propertyType" style="width:50%" placeholder="boolean" disabled><br/> </div> </fieldset> <div class="form-row"> </div> <fieldset> <legend style="font-size:14px;font-weight:bold;color:#555;font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;">Optional</legend> <div class="form-row"> <label for="node-input-operation" style="width:40%"><i class="icon-tag"></i> Operation:</label> <select id="node-input-operation" style="width:30%"> <option value="create">Create</option> <option value="retrieve">Retrieve</option> <option value="update">Update</option> <option value="delete">Delete</option> <option value="observe">Observe</option> </select> </div> </fieldset> </script> <script type="text/x-red" data-help-name="discharging"> <p>Discharging is a Property. It provides output which is <code>ChargingStatusData</code> .</p> <p><br/> <code>ChargingStatusData</code> can be configured with <code>propertyType</code> <br/><br/> <h4><b>Configurations</b></h4> <dl class="message-properties"> <dt>PropertyType <span class="property-type"> Boolean <ul></ul> </span></dt> </dl> </dl> </script>