How can we assign Colors to Users in the Calendar?
We are using the Bryntum Calendar
Hello Nagesh,
You can set the color using eventColor
property https://www.bryntum.com/docs/calendar/api/Scheduler/model/mixin/ResourceModelMixin#field-eventColor
As an example of data, you have:
"resources" : {
"rows" : [
{
"id" : "bryntum",
"name" : "Bryntum team",
"eventColor" : "blue"
},
{
"id" : "hotel",
"name" : "Hotel Park",
"eventColor" : "orange"
},
{
"id" : "michael",
"name" : "Michael Johnson",
"eventColor" : "deep-orange"
}
]
}
Best regards,
Márcio
Hey, you can use any RGB value there, using the same example that I shared earlier
"resources" : {
"rows" : [
{
"id" : "bryntum",
"name" : "Bryntum team",
"eventColor" : "#FA8072"
},
{
"id" : "hotel",
"name" : "Hotel Park",
"eventColor" : "#FF0000"
},
{
"id" : "michael",
"name" : "Michael Johnson",
"eventColor" : "#FF4500"
}
]
}
Best regards,
Márcio
Hi, we could add colors to users and their respective events. But when the calendar view change to month or Agenda the result view is not expected you can see that in the attachments.
We observed that a similar issue was fixed in version 4.3.7 but we are using version 4.3.9. Are there any code changes to be done from our end?