Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Invert.html 941B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--
  2. Licensed under the MIT license, see LICENSE file.
  3. Author: Per Malmberg (https://github.com/PerMalmberg)
  4. -->
  5. <script type="text/javascript">
  6. RED.nodes.registerType('Invert',{
  7. category: 'boolean logic',
  8. color: '#C0DEED',
  9. defaults: {
  10. name: {
  11. value: "Invert"
  12. }
  13. },
  14. inputs:1,
  15. outputs:1,
  16. icon: "serial.png",
  17. label:
  18. function() {
  19. return this.name||"Invert";
  20. },
  21. paletteLabel: function() {
  22. return "Invert";
  23. }
  24. });
  25. </script>
  26. <script type="text/x-red" data-template-name="Invert">
  27. <div class="form-row">
  28. <label for="node-input-name"><i class="icon-tag"></i> Name</label>
  29. <input type="text" id="node-input-name" placeholder="Name">
  30. </div>
  31. </script>
  32. <script type="text/x-red" data-help-name="Invert">
  33. <p>A node that emits the inverted input value.<br/>
  34. The status indicator represents the output value.
  35. </p>
  36. </script>