node-red-contrib-sintelix
Version:
A set of nodes that allow you to interact with the Sintelix API.
43 lines (41 loc) • 1.39 kB
HTML
<!-- Get project node -->
<script type="text/javascript" >
RED.nodes.registerType("get-project", {
category: "sintelix",
defaults: {
sintelix: {type: "sintelix-credentials", required: true},
name: {value: ""}
},
inputs: 1,
outputs: 1,
icon: "sintelix-flower.png",
color: "#EDF5FF",
label: function() {
return this.name || "get-project";
}
});
</script>
<script type="text/x-red" data-template-name="get-project">
<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-sintelix"<i class="fa fa-tag"></i>Credentials</label>
<input type="text" id="node-input-sintelix">
</div>
</script>
<script type="text/x-red" data-help-name="get-project">
<p>The get project node gets the project whose id matches the one specified.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>projectId
<span class="property-type">int</span>
</dt>
<dd>The id of the project you wish to retrieve</dd>
</dl>
<h3>Details</h3>
<p>
<code>msg.payload</code> should contain a map of one value - <code>projectId</code>.
</p>
</script>