-
Notifications
You must be signed in to change notification settings - Fork 22
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:
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:
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:
- Show a blue status text when the input message payload is 'true', and show a yellow status text when the payload is 'false'.
- Afterwards change it to remove the node status when payload is 'false', by using an empty text block as status text.
- Afterwards change it again to remove the node status when payload is 'false', by using nothing as status text.