Button

Adds a button into Maya dashboard.

Inputs

  • enabled (boolean) : setting msg.enabled to false and passing it into the button node disables it.

Outputs

You can customize what is emitted from the output ports upon clicking the button.

  • payload (object) : Clicking the button generates a message with msg.payload set to the Payload field. If no payload is specified, the node id is used.

  • topic (string) : The Topic field can be used to set the msg.topic property that is output.

Attributes

  • Size : defaults to 3 by 1.

  • Icon : Icon can be defined, as either a Material Design icon (e.g. 'check', 'close') or a Font Awesome icon (e.g. 'fa-fire'), or a Weather icon. You can use the full set of google material icons if you add 'mi-' to the icon name. e.g. 'mi-videogame_asset'.

  • The colours of the text and background may be set. They can also be set by a message property by setting the field to the name of the property, for example {{msg.background}}.

  • Label : The label can also be set by a message property by setting the field to the name of the property, for example {{msg.topic}}.

  • If set to pass through mode a message arriving on the input will act like pressing the button. The output payload will be as defined in the node configuration.

Last updated