Events-Coloring in year-view and agenda-view?

How can I use events-coloring in the year-view and agenda-view?



Day/Week/Month views are working fine.



Thanks!

Digo


Hello,


to set event style in the agenda view you can try to use agenda_text template. The default template is:


scheduler.templates.agenda_text = function(ev){
return ev.text;
}




But currently there isn’t opportunity to use event-coloring in year view. We’ll try to add this feature in the nearest time.


In the current version it is possible only change style of all events in year view:


.dhx_month_head.dhx_year_event {
background-color:#FFE763;
}



Hi,

any news about this feature? (coloring year-view events).

We really liked this schedule, but we didn’t solve the issue about coloring year view events yet…

We are considering licensing the scheduler and this feature is mandatory for that. :frowning:

Are there any news about this feature?

Sorry, I figure out how to do it…

[code].dhx_month_head.event_myevent {
background-color: red !important;
color: white !important;
}

scheduler.templates.event_class=function(start, end, event){
if(event.subject) { // if event has subject property then special class should be assigned
return “event_”+event.subject; //subject=myevent
}
return “”; // default return
}[/code]

Any update on this? Still looking for a way to set colors in year_view. Thanks!

Hi,

Have you tried the way described above?