node-red-contrib-smartnode
Version:
this project is a nodejs package for making the nodered support the Smart Device development. the pacakge require node-red enviroment.
29 lines (24 loc) • 758 B
HTML
<script type="text/javascript">
RED.nodes.registerType('SmartNode', {
category: 'Version',
color: '#E2D96E',
defaults: {
name: {value: "SmartNode", required: false},
},
inputs: 0,
outputs: 1,
icon: "light.png",
label: function() {
return this.name || "SmartNode";
},
paletteLabel: function () {
return this.name||this._("SmartNode.label.palette");
}
});
</script>
<script type="text/xred" data-template-name="SmartNode">
<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>
</script>