Issue 705: Past days need to have option to show past days
Status:  Done
Owner: ----
Closed:  Nov 2010
Reported by mrun...@gmail.com, Nov 10, 2010
There should have option where we can able to show past day's background color as different color. and current Day should have different color and future days need to have different color shades.
Nov 10, 2010
Project Member #1 althaus.it
Check the generated HTML code with a tool like Firebug. There are CSS classes set for a lot of features you'd like to have:

<... class="fc-mon fc-state-default fc-day35 fc-leftmost fc-other-month fc-not-today" ...>
Nov 10, 2010
#2 mrun...@gmail.com
Let say today is 10nov and in monthwise / day / weekview I want to show all days needs to have background color as gray. eg. 1-9 Nov(past days) it will have gray background and 10 will have white bg and from 11 - rest it will have pale yellow.  but with the existing css(classname) formatting its not possible.

so when today date become 12 Nov then also same css pattern has to work like this. if any solution. Please suggest.
Nov 10, 2010
Project Member #3 althaus.it
Ah sorry. I didn't read your post thoroughly. There are no direct classes for this case.

You *could* do this with some more jQuery code:

* Track current date
* Check if displayed month is the current one
* Loop through the events and check for the .fc-dayXX classes

It should be doable, but not really nice. :|
Nov 21, 2010
Project Member #4 adamrs...@gmail.com
true, the only way to do this now is through jquery hackery after you know the view has rendered (use the viewDisplay trigger).

but this <https://code.google.com/p/fullcalendar/issues/detail?id=191> will make it easier in the future.

or would could have fullcalendar handle it internally and automatically add a classname, but id like to avoid that unless i hear a lot of people requesting this.
Status: Done