[FullCalendar 2] Change Event Background Color

Forge Component
Published on 2019-03-29 by Daniel Filipe
30 votes
Published on 2019-03-29 by Daniel Filipe


I am trying to change an event background color based on an attribute from the Events Entity (Priority Static Entity with 3 records).

How can I do this?

Thank you!


Hi João,

Since you have a backGround color in the event structure that you can set to anything:

If you have a static entity you can have something like in the print


If(LocalVariableType = Entities.Type.Type1, "rgba(255, 0, 0, 0.5)",
   If(LocalVariableType = Entities.Type.Type2, "rgba(0, 255, 0, 0.5)","rgba(255, 0, 0, 0.5)")

You can also have a switch, you can do it with a lot of alternatives.

Hope it helps.


Hi Hugo,

That did it! Thank you very much!