UNPKG

node-red-node-rdk-tools

Version:

配合RDK硬件及TROS使用的Node-RED功能包(Node-RED nodes for using TROS on a RDK hardware and TROS)

35 lines (33 loc) 1.15 kB
<script type="text/x-red" data-template-name="rdk-tools checkexecute"> <div class="form-row node-input-name"> <label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="rdk-checkexecute.label.name"></span></label> <input type="text" id="node-input-name" data-i18n="[placeholder]rdk-checkexecute.names.checkexecute" style="width: 296px;"> </div> </script> <script type="text/javascript"> RED.nodes.registerType("rdk-tools checkexecute",{ category: "RDK Tools", color: "#FF804A", defaults: { name: {value:""} }, inputs:1, outputs:2, icon: "execute.svg", paletteLabel: function() { return this._("rdk-checkexecute.names.checkexecute"); }, oneditprepare: function() {}, label: function() { return this.name || this._("rdk-checkexecute.names.checkexecute"); } }); (function(){ RED.comms.subscribe("notify", function(topic, str){ RED.notify(str, { type: "warning", timeout: 5000 }) }) })(); </script>