UNPKG

@siglesiasg/node-red-hyperledger-fabric-gateway

Version:

Hyperledger Fabric 2.x nodes for node-red with latest fabric-gateway library

39 lines (30 loc) 1.27 kB
<script type="text/javascript"> RED.nodes.registerType('fabric-contract', { category : 'config', defaults : { name: {value: ''}, contract: {value : '', required : true}, }, label : function () { return this.name?this.name:this.contract; }, }); </script> <script type="text/html" data-template-name="fabric-contract"> <div class="form-row"> <label for="node-config-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label> <input type="text" id="node-config-input-name" data-i18n="[placeholder]node-red:common.label.name"> </div> <div class="form-row"> <label for="node-config-input-contract"><i class="fa"></i>Contract</label> <input type="text" id="node-config-input-contract" placeholder="contract"/> </div> </script> <script type="text/html" data-help-name="fabric-contract"> <span class="red-ui-text-bidi-aware"> <h2>Hyperledger Fabric Contract Config</h2> <p>Configuration node to select fabric contract name</p> <h3 class="red-ui-help-info-header">Details</h3> <p>Contract to be used in the network configuration</p> </span> </script>