My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 72: example for .fullCalendar( 'updateEvent', calEvent)
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2009


Sign in to add a comment
 
Reported by chriszsc@gmail.com, Aug 2, 2009
hi,i dont konw how to use updateEvent method,
could you show me a example

thanks

chris
Aug 6, 2009
#1 loadbr...@gmail.com
Quick & dirty:

init your calendar like this:
theCalendar = $('#calendar').fullCalendar({....

then you can call theCalendar.fullCalendar( 'updateEvent', event);

Aug 6, 2009
Project Member #2 adamrs...@gmail.com
thanks loadbrain, here is a more thorough example:

var events = $('#calendar').fullCalendar('getEventsById', 99);
if (events.length) {
    var event = events[0];
    event.title = "new title";
    event.start = new Date(2009,10,1);
    event.end = new Date(2009,10,3);
    $('#calendar').fullCalendar('updateEvent', event);
}
Status: Done
Sign in to add a comment

Powered by Google Project Hosting