Skip to content

Dispatch action

Dispatch action button.

Name Description
component dispatch-action
options options for the button

Actions available

  • like
  • view
  • edit
  • create
  • createOrUpdate
  • dispatchId
  • bookmark
  • comment
  • task-global
  • task-local
  • vote
  • answer
  • share
  • popup - opens a layout (dispatch will be passed in as context so you can access via {values.metricName}, e.g. {values.name})
  • id: layout id
  • dispatchId: dispatch id
  • url - opens a URL in the system browser
  • url
  • map - opens an address or long/lat in system maps application
  • address OR
  • longitude
  • latitude
  • mode: address | coordinates
  • comments - opens the comments view

Options

Name Description
kind kind of dispatch action, like,view,bookmark,comment,share,vote, popup
dispatchId (required) id of the dispatch
icon icon name
size icon size
color color used to color the icon
fillColor color used to indicate user has performed the action (e.g. liked fille color)
displayCount boolean value indicate whether or not we should display the counter