I’m struggling to figure out how to to set different entries to different colours from data coming from a table. with the sample code pasted into my code, the json data shows the various colours I want to do the same with the data from the table… It pulls from the table via php (the stock examples modified…)
in the events table, I have a field rec_type that gets pulled into the calendar data which i will set the colour to the current entry depending on that value (USER, LEAD, CONTRACT)
i’m just not sure where to start or where to apply the color to the data
The third method allows you to dynamically create new classes for your events. You create a new data collection using the serverList method. When onParse event fires you can generate CSS styles from the serverList. After that you can assign related classes from the event_class template: https://docs.dhtmlx.com/scheduler/custom_events_color.html#loadingcolorswithdata
I’ve made a quick demos that show how it can be implemented in various ways: