| Issue 247: | removing events dynamically | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hi there ,
I set up full calendar to run multiple calendars all with their own css but
have problems when trying to set a display on or off. Thing is i need to
tell the removeEvents function which css to turn off. I have tried this :
$('#calendar').fullCalendar('removeEvents', function(calEvent,calendarid) {
return calEvent.className[0] == 'Calendar-' + calendarid);
});
But cannot get the calendarid value referenced within the callback. Is
there anyway I can do this or is there another way I can get the result.
Cheers,
Spiro
Dec 19, 2009
the removeEvents callback is only given one argument, just the calEvent. check for calEvent.id to get the id. hope this helps, adam
Status:
Done
|
|
| ► Sign in to add a comment |
Hi there, I just added a variable to window namespace window.$my = { calendarField : $('#calendarid'), }; And then it can be accessed from anywhere eg. $my.calendarField .