| Issue 968: | Add class to a cell when it has an event | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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.
May 24, 2011
#1
jimin....@gmail.com
Jun 1, 2011
(No comment was entered for this change.)
Status:
Duplicate
Mergedinto: 885 |
|
| ► Sign in to add a comment |