Maya Docs
  • Introducing Maya
  • Product
    • Command Bar
    • Workspaces
      • Importing JSON Workflows
    • Modules
      • Config Profiles
    • Node Library
      • Common
        • Inject
        • Debug
        • Complete
        • Catch
        • Status
      • Functions
        • Function
        • Change
        • Switch
        • Template
        • Range
        • Delay
        • Trigger
        • Filter
        • Exec
      • Storage
        • Read File
        • Modify File
        • Watch Files
      • Parser
        • CSV
        • HTML
        • JSON
        • XML
        • YAML
      • Sequence
        • Split Into Array
        • Join Array
        • Sort Array
        • Batch Messages
      • Dashboard
        • Button
        • Chart
        • Slider
        • Gauge
        • Switch
        • Dropdown
        • Numeric Input
        • Text Input
        • Template
        • Date Picker
        • Colour Picker
        • Form
        • Display Text
        • Audio Out
      • Network
        • Websockets
          • Websocket Out
          • Websocket In
        • HTTP
          • HTTP In
          • HTTP Response
          • HTTP Request
      • Command Bar
        • Bot Scheduler
        • Bot Command In
        • Bot Command Out
          • Bot Response
          • Bot Web Card
          • Bot Dash Card
        • Custom Search In
        • Custom Search Out
        • Bot Info
      • Spotify
        • Get Playback State
        • Control Playback
        • Play
        • Library
        • Playlist
        • Search
    • Web Extension
      • Selecting Elements
      • Making a web automation skill in 5 minutes
    • Troubleshooting
    • Changelog
  • Tutorials
    • Install skills/modules from store
    • Building fundamentals
    • Connect different services
      • Spotify + Figma
      • Zoom + Google Calendar
    • Browser Automation
      • Control YouTube - Easy
      • Scrape Twitter - Moderate
      • Manage Gmail Inbox - Hard
Powered by GitBook
On this page
  • Inputs
  • Outputs
  • Attributes

Was this helpful?

  1. Product
  2. Node Library
  3. Dashboard

Button

Adds a button into Maya dashboard.

PreviousDashboardNextChart

Last updated 3 years ago

Was this helpful?

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.

  • 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.

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

Material Design icon
Font Awesome icon
Weather icon