Conditional Formatting label in calendar view

In my app I have a calendar view where I would to format the labels color based on city name.
How could I do?

1.PNG

Solved Solved
0 1 212
1 ACCEPTED SOLUTION

To configure colors of events, in the calendar view options, there is a Category option.

Just add in your table a virtual column named color, with a Color type and put the Color column in the category parameter of the view. 

You can return these colors : BlackBlueGreenOrangePurpleRedYellow, and White.

As a formula for the Color column, you can put a conditional, like : If([city] = "Paris", "Green", if([city] ="Lausanne"  , "Red" , etc,  ) )

For the label specifically, I don't think we can edit the color.

 

View solution in original post

1 REPLY 1

To configure colors of events, in the calendar view options, there is a Category option.

Just add in your table a virtual column named color, with a Color type and put the Color column in the category parameter of the view. 

You can return these colors : BlackBlueGreenOrangePurpleRedYellow, and White.

As a formula for the Color column, you can put a conditional, like : If([city] = "Paris", "Green", if([city] ="Lausanne"  , "Red" , etc,  ) )

For the label specifically, I don't think we can edit the color.

 

Top Labels in this Space