UNPKG

node-red-contrib-plcs

Version:

Mentor Monitor Project Plcs Modbus Controllers

34 lines (29 loc) 1.09 kB
<script type="text/javascript"> RED.nodes.registerType('mentor-config',{ category: 'config', color: '#EBEDEC', defaults: { mentor_id: {value: "1", required: true, validate: RED.validators.number()}, mentor_name: {value: ""} }, inputs:0, outputs:0, label: function() { var company = this.mentor_id || "<undefined>" return "mentor-" + company; } }); </script> <script type="text/x-red" data-template-name="mentor-config"> <div class="form-row"> <label for="node-config-input-mentor_name"><i class="icon-bookmark"></i> Mentor Name</label> <input type="text" id="node-config-input-mentor_name"> </div> <div class="form-row"> <label for="node-config-input-mentor_id"><i class="icon-bookmark"></i> Mentor Id</label> <input type="number" id="node-config-input-mentor_id"> </div> </script> <script type="text/x-red" data-help-name="mentor-config"> <p>Contains configuration parameters of mentor instance.</p> </script>