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.

FilterUltimate.html 1.5KB

5 년 전
5 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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>
  43. <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>
  44. and
  45. <a href="http://eepurl.com/gJm095" target="_blank">Subscribe to my channel</a> for news about my nodes.
  46. </p>
  47. <p>The node emits on output "true", only input payloads that are true<br/>
  48. and on the output "false", only input payload that are false.
  49. </p>
  50. <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>
  51. </script>