Two timed messages to change icons

#1

Hello,

I am trying to display a Fontawesome icon, and change that icon after a couple of seconds within the same flow. For instance, from a spinning state to a non-spinning state. I know how to show the icon with the change node:

When i try to change msg.icon with a trigger node right after the change node, it will always put the new icon name string in the payload and not in msg.icon, like so:

Any suggestions on how to solve this?

Gr.

Ed.

0 Likes

#2

I think the trigger node is only capable of setting the payload.
You can do it with a Delay node though. Send the first message to the ui node, and also send it to a delay node. After the delay node use another Change node to set the new message and send that to the ui.

0 Likes

#3

Thank you Colin,

Very good suggestion. Just tried it and works like a charm.

Gr.

Ed.

0 Likes