Color in Schedule

This is more for a tip for new versions)
It would be nice if you could set the colors of the agenda items.
For example, I would have two types of activities, one of "maintenance" and another of "creation" and I wanted the maintenance to have the color yellow and the creation with the color blue.
(Sem%20t%C3%ADtulo

Indeed this could be useful. I am logging a feature request to implement event templates and set their color.

1 Like

Is it now possible to color code Scheduler events? Say I have a field with text "A" color blue or text "B" color red.

Yes, it is possible. Use the EventInit event. The event argument contains the original data item as ${event.data}. You can also set text and background color via ${event.textColor = 'red'} and ${event.backgroundColor = 'green'}.

1 Like

thanks for the info Atanas. But is it also possible to set different colors per record individually? If so - how?

sorry, I've figured it out now. To color each record individually you need to execute code and set
${event.backgroundColor} = ${event.data.[the column name of your query that holds a color value] }