@siglesiasg/node-red-hyperledger-fabric-gateway
Version:
Hyperledger Fabric 2.x nodes for node-red with latest fabric-gateway library
38 lines (30 loc) • 1.31 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('fabric-gateway', {
category: 'config',
defaults: {
name: { value: '', required: true },
peerSelectorGw: { value: '', required: true, type: 'fabric-peer' },
},
label: function () {
return this.name;
},
});
</script>
<script type="text/html" data-template-name="fabric-gateway">
<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-peerSelectorGw"><i class="fa"></i>Peer</label>
<input type="select" id="node-config-input-peerSelectorGw" />
</div>
</script>
<script type="text/html" data-help-name="fabric-gateway">
<span class="red-ui-text-bidi-aware">
<h2>Hyperledger Fabric Gateway Config</h2>
<p>Configuration node to select gateway configuration and peers</p>
<h3 class="red-ui-help-info-header">Details</h3>
<p>Basic Hyperledger Fabric Gateway configuration to be used in HLF nodes.</p>
</span>
</script>