node-red-contrib-ozmap
Version:
OZMap wrapper to ozmap-api. Helper to use OZMap API's
37 lines (33 loc) • 1.07 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('cable', {
category: 'ozmap',
color: '#a6bbcf',
defaults: {
name: { value: 'Cable' },
ozmapconnection: { value: '', type: 'ozmap-connection' },
},
inputs: 1,
outputs: 2,
icon: 'file.png',
label: function () {
return 'OZMap: ' + this.name;
},
});
</script>
<script type="text/html" data-template-name="cable">
<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> OZMap Connection</label>
<input type="text" id="node-input-ozmapconnection" placeholder="Name" />
</div>
<div class="form-row">
<br /><br />
<a style="color: blue" href="https://api.ozmap.com.br/#/Cabo" target="_blank"> https://api.ozmap.com.br/#/Cabo </a>
</div>
</script>
<script type="text/html" data-help-name="cable">
<p>Get Cables from ozmap</p>
</script>