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.

ui_dropdown.html 1.3KB

12345678910111213141516
  1. <script type="text/html" data-help-name="ui_dropdown">
  2. <p>Adds a dropdown select box to the user interface.</p>
  3. <p>Multiple value / label pairs can be added as required. If the label is not specified the
  4. value will be used for both.</p>
  5. <p>The configured value of the selected item will be returned as <code>msg.payload</code>.</p>
  6. <p>Setting <code>msg.payload</code> to one of the item values will preset the choice in the dropdown.
  7. If using the multi-select option then the payload should be an array of values.</p>
  8. <p>Optionally the <b>Topic</b> field can be used to set the <code>msg.topic</code> property.</p>
  9. <p>The Options may be configured by inputting <code>msg.options</code> containing an array.
  10. If just text then the value will be the same as the label, otherwise you can specify both by
  11. using an object of <code>"label":"value"</code> pairs :</p>
  12. <code>[ "Choice 1", "Choice 2", {"Choice 3":"3"} ]</code>
  13. <p></p>
  14. <p>If the "Allow multiple selections" output option is enabled - the result will be returned as an array instead of a string.</p>
  15. <p>If a <b>Class</b> is specified, it will be added to the parent card. This way you can style the card and the elements inside it with custom CSS. The Class can be set at runtime by setting a <code>msg.className</code> string property.</p>
  16. </script>