UNPKG

node-red-contrib-motechat

Version:

ultranet topic and payload communication

82 lines (74 loc) 2.27 kB
<script type="text/x-red" data-template-name="set"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="set"> </div> <div class="form-row"> <label for="node-input-EiName"><i class="fa fa-tag"></i> EiName</label> <input type="text" id="node-input-EiName" placeholder="" /> </div> <div class="form-row"> <label for="node-input-EiTag"><i class="fa fa-tag"></i> EiTag</label> <input type="text" id="node-input-EiTag" placeholder="" /> </div> <div class="form-row"> <label for="node-input-EiLoc"><i class="fa fa-tag"></i> EiLoc</label> <input type="text" id="node-input-EiLoc" placeholder="" /> </div> </script> <script type="text/x-red" data-help-name="set"> <p>Motechat set node. </p> <h3>Inputs</h3> <dl class="message-properties"> <dt>set <span class="property-type">string</span> </dt> <dd>The set of message.</dd> <dt>EiName <span class="property-type">object</span> </dt> <dd>The EiName of message.</dd> <dt>EiTag <span class="property-type">object</span> </dt> <dd>The EiTag of message.</dd> <dt>EiLoc <span class="property-type">object</span> </dt> <dd>The EiLoc of message.</dd> <dt class="optional">name <span class="property-type">string</span> </dt> <dd>The name of the node.</dd> </dl> <h3>Outputs</h3> <dl class="message-properties"> </dl> </script> <script type="text/javascript"> RED.nodes.registerType('set', { category: 'motechat', color: '#BFE2ED', defaults: { name: { value: '' }, EiName: { value: '' }, EiTag: { value: '' }, EiLoc: { value: '' } }, inputs: 1, outputs: 2, icon: "set.png ", label: function() { return this.name || "set" } }); </script>