Hi, I’m trying out the repeater function, and like to get the heading in green to change to a different range of colors because the content of that column needs different colors to indicate the a status. Is it possible to add a sub function in the repeater to change the colour of a widget inside this card repeater without making multiple cards manually?
For example, this is the range of colors I’d like for this heading.
done = green
cancelled = red
in progress = yellow
Sure, you can do this a few different ways. I’m guessing you’re going to have a finite number of statuses, so the way I’d do it is:
create a dynamic panel inside your repeater with three states, one for each status. Style however you want.
Using the repeater’s “item loaded” interaction, conditionally set the state of the dynamic panel to the appropriate status.
Here’s an example: repeater-status-badge.rp (71.6 KB)