UNPKG

crypto-nodes

Version:

50 lines (43 loc) 1.65 kB
<!-- Assertion selector css Block --> <script type="text/javascript"> RED.nodes.registerType('providerConfigWriter', { category: 'crypto', color: '#F5D5A7', defaults: { name: {value: "", required: true}, provider_name: {value: "CryptoCompare", required: true}, }, inputs: 1, outputs: 0, icon: "serial.png", label: function () { return 'Crypto exchanges and pairs writer'; }, inputLabels: [], outputLabels: [], oneditprepare: function() { /*var that = this; $.getJSON('messages', function(models) { that.models = models; for (var n in that.models) { $('#node-input-message_id').append('<option value="'+that.models[n].id+'">'+that.models[n].text+'</option>'); $('#node-input-message_id').val(that.message_id); } }); */ }, }); </script> <script type="text/x-red" data-template-name="providerConfigWriter"> <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-provider_model"><i class="icon-tag"></i> Provider Name </label> <input type="text" id="node-input-provider_name" placeholder="CryptoCompare"> </div> </script> <script type="text/x-red" data-help-name="providerConfigWriter"> <p>This node writes provider configuration (all exchanges and pairs available for a provider)</p> </script>