UNPKG

node-red-contrib-amcrest-ad110

Version:
39 lines (35 loc) 1.56 kB
<script type="text/javascript"> RED.nodes.registerType('node-amcrest-ad110-config', { category: 'config', defaults: { name: { value: '', required: false }, ipAddr: { value: '', required: true } }, credentials: { password: { type: "password", required: true } }, label: () => { return this.name || 'AD110 Config' }, color: "#1DB5F2", paletteLabel: "AD110 Config", icon: "font-awesome/fa-list" }); </script> <script type="text/html" data-template-name="node-amcrest-ad110-config"> <div class="form-row" style="display: -webkit-flex;"> <label for="node-input-name" style="width: 10em"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-config-input-name" placeholder="Name" style="-webkit-flex:1"> </div> <div class="form-row" style="display: -webkit-flex;"> <label for="node-input-ipAddr" style="width: 10em"><i class="fa fa-cog"></i> IP Address</label> <input type="text" id="node-config-input-ipAddr" style="-webkit-flex:1"> </div> <div class="form-row" style="display: -webkit-flex;"> <label for="node-input-password" style="width: 10em"><i class="fa fa-cog"></i> Password</label> <input type="password" id="node-config-input-password" style="-webkit-flex:1"> </div> </script> <script type="text/x-red" data-help-name="node-amcrest-ad110-config"> <p>Config for Amcrest AD110 Nodes</p> </script>