I have the following code for the schedule component
<ScheduleComponent
height="650px"
allowDragAndDrop={false}
allowResizing={false}
ref={(schedule) => setScheduleObj(schedule)}
cssClass="e-customClass"
readonly={true}
selectedDate={new Date(2021, 0, 10)}
eventSettings={{ dataSource: scheduleData }}
>
<ViewsDirective>
{["Day", "Week", "WorkWeek", "Month", "Agenda"].map((item) => (
<ViewDirective key={item} option={item} />
))}
</ViewsDirective>
<Inject
services={[Day, Week, WorkWeek, Month, Agenda, Resize, DragAndDrop]}
/>
</ScheduleComponent>
And it works well, but it has a blue default colour for all events
The data source is in the form of:
{
Id: 2,
Subject: "Thule Air Crash Report",
Location: "Newyork City",
StartTime: "2021-01-11T06:30:00.000Z",
EndTime: "2021-01-11T08:30:00.000Z",
CategoryColor: "#357cd2",
},
How can I change the default colour of the events to something like red.
I have tried adding the cssClass="" prop but it seams to do nothing. Is tere a way I can change the default colou