UNPKG

@ozmap/node-red-contrib-ozmap

Version:

OZMap wrapper to ozmap-api. Helper to use OZMap API's

44 lines (42 loc) 1.62 kB
<script type="text/javascript"> RED.nodes.registerType('client', { category: 'ozmap', color: '#a6bbcf', defaults: { name: { value: 'Client' }, ozmapconnection: { value: '', type: 'ozmap-connection' }, limit: { type: 'number', value: '' }, page: { type: 'number', value: '' }, }, inputs: 1, outputs: 2, icon: 'file.png', label: function () { return 'OZMap: ' + this.name; }, }); </script> <script type="text/html" data-template-name="client"> <div class="form-row"> <a style="color: blue" href="https://ozmap.stoplight.io/docs/ozmap/cfcc60431a133-list-clients" target="_blank"> https://ozmap.stoplight.io/docs/ozmap/cfcc60431a133-list-clients </a> </div> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name" /> </div> <div class="form-row"> <label for="node-input-ozmapconnection"><i class="fa fa-tag"></i> Connection</label> <input type="text" id="node-input-ozmapconnection" placeholder="OZMap Connection" /> </div> <div class="form-row"> <label for="node-input-page"><i class="fa fa-sort-numeric-desc"></i> Page</label> <input style="width:25%" type="number" id="node-input-page" placeholder="Page" /> &nbsp; <label for="node-input-limit"><i class="fa fa-sort-numeric-desc"></i> Limit</label> <input style="width:25%" type="number" id="node-input-limit" placeholder="Limit" /> </div> </script> <script type="text/html" data-help-name="client"> <p>Get clients from ozmap</p> </script>