node-red-contrib-nanoleaf
Version:
[](https://nodered.org) [](https://nodejs.org/en/) [ • 1.67 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('effects', {
category: 'nanoleaf',
color: '#3eaf24',
icon: 'nanoleaf_white.png',
inputs: 1,
outputs: 1,
defaults: {
name: { value: '' },
installation: { type: 'installation' },
outputType: { value: 'available' }
},
label: function () {
return this.name || 'effects';
}
});
</script>
<script type="text/x-red" data-template-name="effects">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name"/>
</div>
<div class="form-row">
<label for="node-input-installation"><i class="fa fa-tag"></i> Installation</label>
<input type="text" id="node-input-installation"/>
</div>
<div class="form-row">
<label for="node-input-outputType"><i class="fa fa-envelope"></i> Output</label>
<select id="node-input-outputType">
<option selected value='available'>Available array</option>
<option value='selected'>Currently selected</option>
<option value='combined'>Combined object { selected, available[] }</option>
</select>
</div>
</script>
<script type="text/x-red" data-help-name="effects">
<p>Depending upon the selected output type:</p>
<p>Available; Array of installed Nanoleaf Aurora effects.</p>
<p>Selected; Currently selected Nanoleaf Aurora effect.</p>
<p>Combined; Currently selected and array of installed Nanoleaf Aurora effects.</p>
</script>