I can only set the background color

Everything worked until I started pumping in more options and more records.

Now it only does the background color correctly.

The text color is matching the other differently colored backgrounds of the other events instead of black event though the background is showing up green as it should…

I wonder if the color schemes are ignored in the DHTMLX library under certain conditions.

TIA

-David

Notes:

.dhx_cal_event.event_is_confirmed div,
.dhx_cal_event_line.event_is_confirmed{
background-color: green !important;
color: black !important;
}

.dhx_cal_event_clear.event_is_confirmed{
color: green !important;
}

scheduler.templates.event_class=function(start, end, event){

	// custom color
	if (1==2) { }
	              
	                                                     
	else if (
	event.canceled == '1'
	) 
	{                                                                                  
		return "event_canceled";                           
	}                                                                                  

	                                                     
	else if (
	event.is_private == '1'
	) 
	{                                                                                  
		return "event_is_private";                           
	}                                                                                  

	                                                     
	else if (
	event.is_confirmed == '1'
	) 
	{                                                                                  
		return "event_is_confirmed";                           
	}

The confirmed event (shown with the checkboxes) text color has been clearly defined as black?

-D

Hello,
your event class template can return one of the three custom classes - “event_canceled” or “event_is_private” or “event_is_confirmed”, not the combination of them. Probably these events has several attributes set, and template return the first match.
You can inspect the DOM elements of the events to see which class is really applied