DHTMLScheduler - Color

What is the recommended way for controlling the color of events? For example, you could have four types of events with each using a different color defined by a custom type field in the event object. Some of the screenshots in the documentation have multiple color events, but it doesn’t specify how to do it.



What is the suggested approach to darken the background color of certain hours (rows) or days (columns) in the week view mode of the calendar. For example, if you didn’t necessarily want to prevent a user from creating an event before 8am or after 5pm, but you wanted to give them a strong visual context clue for where they should start their day of appointments. An example of the column effect would be for Tuesday, Thursday, and Saturday to help visualize scheduling patterns such as meetings which happen M-W-F or T-TH.



Thanks,

-Tom

What is the recommended way for controlling the color of events?
You can control the css class assigned to event, and through it you can control color of event.
It can be done by redefining event_class template
Please check attached document.

>>to darken the background color of certain hours
This is problematic. Currently grid uses the same background to color all hours on the scale. You can fully remove unnecessary hours by defining custom start and end hour in config, but you can’t color them in different way.

>> or days (columns)
It can be done technically, but in current version, this functionality can’t be accessed through public API. Please inform if it is a critical requirement in your case- we will provide some kind of patch.

dhtmlxscheduler_custom_styling.mht (124 KB)