My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 651: Change color of slots / days
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2010


Sign in to add a comment
 
Reported by mail2...@gmail.com, Sep 29, 2010
First of all, great work this calendar! 

I have two questions:
1. Which CSS elements do I have to change in order to change the color of the slots at the left? I can't figure it out....

2. Is there an easy way to change the color of a specific day (for example Christmas day)? I've seen a issue like this, but no solution found. I already tried something like this....Maybe this will cause other ideas.

/-----------------
iY = $.fullCalendar.formatDate(oView.visStart, 'yyyy');
iM = $.fullCalendar.formatDate(oView.visStart, 'MM');
iD = $.fullCalendar.formatDate(oView.visStart, 'dd');
oStartDate = new Date(iY, iM-1, iD);
  
iY = $.fullCalendar.formatDate(oView.visEnd, 'yyyy');
iM = $.fullCalendar.formatDate(oView.visEnd, 'MM');
iD = $.fullCalendar.formatDate(oView.visEnd, 'dd');
oEndDate = new Date(iY, iM-1, iD);
  
while(oStartDate <= oEndDate)
{
  oStartDate.setDate(oStartDate.getDate()+1);
    
  sStartDate = $.fullCalendar.formatDate(oStartDate, 'yyyy-MM-dd');
    
  if(typeof(aFreeDays[sStartDate])!='undefined')
  {
    iDayNr = oStartDate.getDay();

    $(".fc-"+aDaysShort[iDayNr]).css('background-color', 'red');
  }
} 
------------------/

Thanks in advance
Oct 7, 2010
Project Member #1 adamrs...@gmail.com
1. use firebug. something like ".fc-axis" i think

2. should be able to use https://code.google.com/p/fullcalendar/issues/detail?id=191 once it is implemented. after that, maybe someone will build a plugin around it to make it easier
Status: Done
Sign in to add a comment

Powered by Google Project Hosting