I want to change the color of event in schedule, but i cant figure how to.
If I do this:
Code: Select all
eventModel.addEvent(new DefaultScheduleEvent("Prckova", new Date(), new Date(),"cssStyle"));
Code: Select all
.cssStyle{
background-color:red !important;
border-style: solid !important;
border-color: red !important;
color: white !important;
}
If i look at the page, i think, that:
1) The user style should be define closer to the event, co it overwrite the attributes.
2) Not define the color of css atributes: .fc-event, .fc-agenda .fc-event-time, .fc-event a
And my next questin is about selectEvent:
When I receive the event, i need to do correction of the time, because the event shows me yesterday. Is this something about the different timezones i am?
The right date display me after this code:
Code: Select all
public void onDateSelect(DateSelectEvent selectEvent) {
Date ref = new Date(selectEvent.getDate().getTime()+HOURS*MINUTES*SECONDS*MILISECONDS);
event = new DefaultScheduleEvent(Math.random() + "", ref, ref);
}