Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

49 lines
1.2KB

  1. <script type="text/javascript">
  2. RED.nodes.registerType('FilterUltimate',{
  3. category: 'boolean logic ultimate',
  4. color: '#ff8080',
  5. defaults: {
  6. name: {
  7. value: "Filter"
  8. }
  9. },
  10. inputs:1,
  11. outputs:2,
  12. outputLabels: function(i) {
  13. var ret="";
  14. switch (i) {
  15. case 0:
  16. return "True";
  17. break;
  18. case 1:
  19. return "False";
  20. break;
  21. default:
  22. break;
  23. }
  24. },
  25. icon: "switch.png",
  26. label:
  27. function() {
  28. return this.name||"Filter";
  29. },
  30. paletteLabel: function() {
  31. return "FilterUltimate";
  32. }
  33. });
  34. </script>
  35. <script type="text/x-red" data-template-name="FilterUltimate">
  36. <div class="form-row">
  37. <label for="node-input-name"><i class="icon-tag"></i> Name (topic)</label>
  38. <input type="text" id="node-input-name" placeholder="Name">
  39. </div>
  40. </script>
  41. <script type="text/x-red" data-help-name="FilterUltimate">
  42. <p>The node emits on output "true", only input payloads that are true<br/>
  43. and on the output "false", only input payload that are false.
  44. </p>
  45. <a href="https://www.paypal.me/techtoday" target="_blank"><img src='https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square' width='30%'></a>
  46. </script>