Button ui-button
Adds a clickable button to your dashboard.
Properties
Prop | Dynamic | Description |
---|---|---|
Group | Defines which group of the UI Dashboard this widget will render in. | |
Size | Controls the width of the button with respect to the parent group. Maximum value is the width of the group. | |
Icon | Renders a Material Design icon within the button. There is no need to include the "mdi-" prefix. | |
Icon Position | If "Icon" is defined, this property controls which side of the "Label" the icon will render on. | |
Label | The text shown within the button. If not provided, then the button will only render the icon. | |
Emulate Button Click | If enabled, any received message will trigger a button click, emitting the relevant payload and topic. |
Dynamic Properties
Dynamic properties are those that can be overriden at runtime by sending a particular msg
to the node.
Where appropriate, the underlying values set within Node-RED will be overriden by the values set in the received messages.
Prop | Payload | Structures |
---|---|---|
Class | msg.class | String |
Controls
msg. | Example | Description |
---|---|---|
enabled | true | false | Allow control over whether or not the button is clickable. |
Example
Example of a rendered button in a Dashboard.