Issue 968: Add class to a cell when it has an event
Status:  Duplicate
Merged:  issue 885
Owner: ----
Closed:  Jun 2011
Reported by uhquemacana@gmail.com, May 23, 2011
Hi, I'm trying to add a class to the entire day cell when it has an event on that date.
I want to have this functionality to create a smaller month calendar displaying only date numbers (without event title or time) on bold, with a background color and a link to that event if there is one.
It would look something like the attached image.

I've noted that something similar it is done for "today" day.
Using:
.removeClass('fc-not-today')
.addClass('fc-state-highlight');

But I do not know how to apply this to my case.
I have tried to add something like:

function(event, element) {
	if (event.!allDay) {
 element.removeClass('fc-not-today')
 element.addClass('fc-state-highlight');
  }
}

but as I expected, didn't work. 
Note that I added "(event.!allDay)" because I do not know how to call a "regular" event, so I tried to do it applying the classes to all "not all day" events...

Could you please help me to achieve this?
Please let me know if you need more information / clarification.

highlighted_eventdays.png
5.5 KB   View   Download
May 24, 2011
#1 jimin....@gmail.com
  I am trying to implement this function too, it will be helpful if anyone can provide any hints. 
  At present, one cell is higher because it needs to reserve space for the event, how can I eliminate the space for events.
Jun 1, 2011
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 885