Custom event color without using CSS class

I’ve read the docs on custom coloring events by defining a CSS class. The problem is I have a unlimited amount of event “types” that can be displayed in a Week and Unit view. So it’s not feasible to create an unlimited number of CSS classes.

Can I simply assign a style directly to the event to change the color in Week or Unit views? I’m thinking of something like this

event.style="color:#cc000;";

OR

event.style="backgroundColor:#cc000;";

Hello,

Unfortunately for now you can only define styles through classes.
We will add support for color and textColor options in the upcoming version.
You can try to assign events with different types (based on some logic) same CSS class.

Best regards,
Ilya

Ok, I guess I can generate the css classes on the server and write to the page or output a stylesheet file to disk.

Its good to know you guys are working on it. Thanks for the fast reply!