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_toast.html 1.2KB

123456789101112131415
  1. <script type="text/html" data-help-name="ui_toast">
  2. <p>Shows <code>msg.payload</code> as a popup notification or OK / Cancel dialog
  3. message on the user interface.</p>
  4. <p>If a <code>msg.topic</code> is available it will be used as the title.</p>
  5. <p>If you do not set an optional border highlight colour, then it can be set dynamically by <code>msg.highlight</code>.</p>
  6. <p>You may also configure the position and duration of the toast notifications. If you leave the timeout blank
  7. it can be set by <code>msg.timeout</code>. This does not apply to OK/Cancel dialogs.
  8. <p>The dialog returns a <code>msg.payload</code> string of whatever you configure
  9. the button label(s) to be. The second (cancel) button is optional, as is the return
  10. value of <code>msg.topic</code>.</p>
  11. <p>If you select 'OK, Cancel and Input' mode then <code>msg.payload</code> will contain
  12. any text input by the user, rather than the OK button text.</p>
  13. <p>Sending a blank payload will remove any active dialog without sending any data.</p>
  14. <p>If a <b>Class</b> is specified, it will be added to the parent element. This way you can style the card and the elements inside it with custom CSS.</p>
  15. </script>