crypto-nodes
Version:
45 lines (34 loc) • 1.24 kB
HTML
<!-- Assertion selector css Block -->
<script type="text/javascript">
RED.nodes.registerType('orderbookConnector', {
category: 'crypto',
color: '#F5D5A7',
defaults: {
name: { value: ""},
server: { value: "", required: true }
},
inputs: 1,
outputs: 7,
icon: "book.png",
label: function () {
return this.name || 'OrderbookConnect';
},
inputLabels: [ 'actions' ],
outputLabels: [ 'added', 'accept', 'fill', 'cancel', 'replace', 'book_update', 'errors' ],
oneditprepare: function() {
},
});
</script>
<script type="text/x-red" data-template-name="orderbookConnector">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name </label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-server"><i class="icon-tag"></i> Server </label>
<input type="text" id="node-input-server" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="orderbookConnector">
<p>Establish connection to socketio based orderbook</p>
</script>