Examples for coloring an event

JS newbie. Playing around with the scheduler and its been great so far. Would like to get some pointers on styling events (their color) depending on the event type. So far from scattered examples I was able to find that we would need to define a function that returns the css which contains the required color.

Is there a place where I could get a complete code sample of how to do this - Where does scheduler.templates.event_class function should go etc. Also, is there a place where we could find complete code samples for simple howtos such as these.

Hello,

Have you checked samples which come with the scheduler package? They are located in the scheduler/samples/ folder.
In your case be sure to check scheduler/samples/02_customization/01_events_coloring.html sample.

Kind regards,
Ilya