@ozmap/node-red-contrib-ozmap
Version:
OZMap wrapper to ozmap-api. Helper to use OZMap API's
45 lines (42 loc) • 1.63 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('project', {
category: 'ozmap',
color: '#a6bbcf',
defaults: {
name: { value: 'Project' },
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="project">
<div class="form-row">
<a style="color: blue" href="https://ozmap.stoplight.io/docs/ozmap/4e0dabdde7133-list-projects" target="_blank">
https://ozmap.stoplight.io/docs/ozmap/4e0dabdde7133-list-projects
</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" />
<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="project">
<p>Get projects from ozmap</p>
</script>