Skip to content

Show a status text on the node

bartbutenaers edited this page Aug 15, 2018 · 3 revisions

The node status provides a lot of information to the user (in the flow editor). For example:

blockly_status_example

The node status consists of three properties:

  • text: a short textual description (under <20 characters).
  • fill: the color of the status icon (red, green, yellow, blue or grey).
  • shape: the shape of the status icon (ring or dot).

The following animation shows how to display an error in the blockly node's status:

blockly_status

The status will remain unchanged, until a new status is displayed or the flow is redeployed. However it is possible to remove the current status from the node, by setting an empty status text or no status text.

The following animation shows how to accomplish these steps:

  1. Show a blue status text when the input message payload is 'true', and show a yellow status text when the payload is 'false'.
  2. Afterwards change it to remove the node status when payload is 'false', by using an empty text block as status text.
  3. Afterwards change it again to remove the node status when payload is 'false', by using nothing as status text.

blockly_status_clear