node-red-contrib-emberplus
Version:
Interface to Ember+ automation standard
29 lines (27 loc) • 1.03 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('emberplus-server',{
category: 'config',
defaults: {
name: {value:""},
host: {value:"localhost",required:true},
port: {value:9000,required:true,validate:RED.validators.number()},
},
label: function() {
return this.name || this.host+":"+this.port;
}
});
</script>
<script type="text/html" data-template-name="emberplus-server">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-host"><i class="icon-bookmark"></i> Host</label>
<input type="text" id="node-config-input-host">
</div>
<div class="form-row">
<label for="node-config-input-port"><i class="icon-bookmark"></i> Port</label>
<input type="text" id="node-config-input-port">
</div>
</script>